/* ========================================
   リセットとベーススタイル
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --saturday: #DBEAFE;
    --sunday: #FED7AA;
    --border: #E5E7EB;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-tertiary: #9CA3AF;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Yu Gothic', 'Meiryo', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow: auto;
}

.app-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.storage-status {
    padding: 0.35rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.storage-status.storage-error {
    color: #991B1B;
    background: #FEF2F2;
}

/* ========================================
   ヘッダー
   ======================================== */
.header {
    min-width: max-content;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem 0.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    box-shadow: var(--shadow-sm);
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 34px;
    flex-shrink: 0;
}

.logo .company-logo {
    display: block;
    width: 1.1rem;
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.logo h1 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 34px;
    margin: 0;
    white-space: nowrap;
}

.project-name-input {
    flex: 1;
    max-width: 400px;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    height: 34px;
    box-sizing: border-box;
}

.project-name-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.header-right {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.header-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.header-label-top {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    display: block;
    margin-bottom: 0.25rem;
    text-align: center;
    height: 19px;
    line-height: 19px;
}

.toolbar-group-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.toolbar-divider-compact {
    width: 1px;
    height: 52px;
    background: var(--border);
    margin: 0 0.4rem;
    align-self: stretch;
}

.date-input-compact {
    padding: 0.3rem 0.5rem 0.5rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: all 0.2s;
    width: 155px;
    box-sizing: border-box;
}

.date-input-compact:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

/* date入力のカレンダーアイコン調整 */
input[type="date"].date-input-compact::-webkit-inner-spin-button,
input[type="date"].date-input-compact::-webkit-calendar-picker-indicator {
    margin-left: 2px;
}

/* 全体のフォント調整 */
.date-input-compact {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: -0.02em;
}

.select-compact {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 75px;
    height: 34px;
    box-sizing: border-box;
}

.select-compact:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.date-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-input {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.date-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.date-separator {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.view-mode-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.view-mode-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ========================================
   ボタン
   ======================================== */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon-large {
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-icon-large:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--text-tertiary);
}

.btn-icon:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--text-tertiary);
}

.btn-add-task {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-add-task:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* トグルボタン（ゼロ工程用） */
.btn-toggle {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-toggle:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
}

.btn-toggle.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ========================================
   ドロップダウン
   ======================================== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.875rem;
}

.dropdown-menu a:hover {
    background: var(--bg-secondary);
}

.dropdown-menu a i {
    width: 1rem;
    color: var(--text-secondary);
}

/* ========================================
   印刷対象外
   ======================================== */
.no-print {
    /* 印刷時に非表示 */
}

/* ========================================
   カラーツールバー
   ======================================== */


.color-palette-inline {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    height: 34px;
}

.color-option-inline {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    position: relative;
}

.color-option-inline:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.color-option-inline.selected {
    border-color: var(--text-primary);
    transform: scale(1.1);
}

.color-option-inline.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ========================================
   印刷エリア
   ======================================== */
.print-area {
    width: 297mm;
    height: 210mm;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* ========================================
   案件名エリア
   ======================================== */
.project-title-area {
    position: relative;
    background: var(--bg-primary);
    padding: 0.5rem 2px;
    border-bottom: 2px solid #000;
    display: flex;
    gap: 0.1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.chart-document-title {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    margin: 0;
    font-family: 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.15em;
    text-align: center;
    white-space: nowrap;
}

.project-title-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.project-title-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    height: 19px;
    line-height: 19px;
    display: block;
    margin-bottom: 0;
}

.project-meta {
    display: flex;
    gap: 0.1rem;
    flex-shrink: 0;
    margin-left: 0.1rem;
}

.meta-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.project-title-field-main {
    flex: 1;
    min-width: 0;
    padding-left: 180px;
    padding-right: 16px;
    margin-right: 0.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-title-field-main label {
    text-align: center;
    width: 100%;
}

.project-title-field-main input {
    width: 100%;
    max-width: 100%;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.25rem 2px 0.35rem 2px;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
    border-bottom: 2px solid #000;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.meta-field label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    height: 19px;
    line-height: 19px;
    display: block;
    margin-bottom: 0;
}

.meta-field input {
    padding: 0.3rem 0.5rem 0.5rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    width: 150px;
}

#projectTitle {
    width: 100% !important;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.25rem 0.5rem 0.35rem 0.5rem;
    text-align: center;
}

.meta-field input:focus {
    outline: none;
    border-color: var(--primary);
}

.meta-field input[readonly] {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}



.project-title-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.project-title-input::placeholder {
    color: var(--text-tertiary);
    font-weight: 500;
}

/* ========================================
   ワークスペース
   ======================================== */
.gantt-workspace {
    flex: 1;
    overflow: hidden;
    padding: 0.5rem 0.5rem 0.375rem;
}

/* ========================================
   備考欄
   ======================================== */
.notes-area {
    background: white;
    padding: 0.5rem;
    border-top: 2px solid #000;
    height: 80px;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.notes-fields {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.notes-company-logo {
    width: 56px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    align-self: center;
}

.notes-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.notes-textarea {
    flex: 1;
    width: 100%;
    padding: 0.2rem 0.5rem 0.4rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-family: inherit;
    resize: none;
    transition: all 0.2s;
    overflow-y: hidden;
    line-height: 1.3;
}

.notes-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

/* ========================================
   右クリックメニュー
   ======================================== */
.context-menu {
    position: fixed;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    z-index: 10000;
    display: none;
    overflow: hidden;
}

.context-menu.show {
    display: block;
}

.context-menu-item {
    padding: 0.5rem 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.context-menu-item:hover {
    background: var(--bg-secondary);
}

.context-menu-item i {
    width: 1rem;
    color: var(--text-secondary);
}

.context-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 0.125rem 0;
}

.gantt-container {
    height: calc(48px + var(--row-count, 26) * var(--row-height, 22px) + 4px);
    background: var(--bg-primary);
    display: flex;
    overflow: hidden;
    border: 2px solid #000;
}

/* ========================================
   タスクリスト
   ======================================== */
.task-list {
    width: 230px;
    min-width: 230px;
    max-width: 230px;
    flex-shrink: 0;
    border-right: 2px solid #000;
    display: flex;
    flex-direction: column;
}

.task-list-header {
    flex-shrink: 0;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid #000;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.task-col-name {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
    overflow: visible;
}

.task-col-actions {
    width: 40px;
    display: flex;
    justify-content: center;
}

.task-list-body {
    flex-shrink: 0;
    overflow: visible;
    height: calc(var(--row-count, 26) * var(--row-height, 22px));
}

.task-row {
    height: var(--row-height, 36px);
    display: flex;
    align-items: stretch;
    padding: 0;
    border-bottom: 1px solid #000;
    transition: background 0.2s;
    background: var(--bg-primary);
    overflow: visible;
}

.task-row:hover {
    background: var(--bg-secondary);
}

/* 最下段は外枠の罫線を使い、行の罫線を重ねない。 */
.task-row:last-child {
    border-bottom-color: transparent;
}

.horizontal-grid-line:last-child {
    visibility: hidden;
}

.task-row.selected {
    background: rgba(79, 70, 229, 0.05);
    border-left: 3px solid var(--primary);
}

.task-name-input {
    flex: 1;
    padding: 0 0.25rem 0 1rem;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.1;
    cursor: text;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    transform-origin: left center;
}

.task-name-input:focus {
    outline: none;
    background: transparent;
}

.task-name-input::placeholder {
    color: #D1D5DB;
    font-weight: 400;
}

.task-delete-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 0;
}

.task-row:hover .task-delete-btn {
    opacity: 1;
}

.task-delete-btn:hover {
    background: var(--danger);
    color: white;
}

/* ========================================
   チャートエリア
   ======================================== */
.chart-area {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chart-timeline {
    flex-shrink: 0;
    height: 48px;
    background: var(--bg-secondary);
    border-bottom: 1px solid #000;
    overflow: hidden;
    position: relative;
}

.chart-content {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    height: calc(var(--row-count, 26) * var(--row-height, 22px));
}

.chart-grid {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.chart-svg {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.chart-bars {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    min-height: 500px;
}

/* タイムラインセル */
.timeline-cell {
    position: absolute;
    top: 0;
    border-right: 1px solid #000;
    padding: 0.25rem;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: var(--bg-secondary);
}

.timeline-month {
    font-weight: 500;
    font-size: 0.55rem;
    color: var(--text-primary);
    white-space: nowrap;
    line-height: 1;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.05em;
    transform: scale(0.85, 1);
    transform-origin: center;
}

.timeline-date {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-top: 0.1rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.timeline-day {
    font-size: 0.6rem;
    font-weight: 400;
    margin-top: 0.2rem;
    color: var(--text-secondary);
    line-height: 1;
}

/* グリッドセル */
.grid-cell {
    position: absolute;
    border-right: 1px solid #000;
    top: 0;
}

.grid-cell.saturday {
    background: var(--saturday);
}

.grid-cell.sunday {
    background: var(--sunday);
}

.grid-cell.today {
    background: rgba(79, 70, 229, 0.05);
    border-left: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
}

/* タスクバー */
.task-bar {
    position: absolute;
    height: 16px;
    border-radius: 4px;
    cursor: move;
    display: flex;
    align-items: center;
    padding: 0 0.35rem;
    color: white;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.2s, transform 0.2s;
    user-select: none;
}

.task-bar:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.task-bar.dragging {
    opacity: 0.8;
    cursor: grabbing;
    z-index: 1000;
}

.task-bar.preview-bar {
    opacity: 0.6;
    pointer-events: none;
}

.task-bar-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: move;
    pointer-events: none;
}

.task-bar-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.task-bar-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.task-bar-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
}

.task-bar-handle {
    position: absolute;
    width: 8px;
    height: 100%;
    top: 0;
    cursor: ew-resize;
    background: transparent;
    transition: background 0.2s;
}

.task-bar-handle.left {
    left: 0;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.task-bar-handle.right {
    right: 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.task-bar-handle:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* ========================================
   モーダル
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-small {
    max-width: 450px;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ========================================
   ローディング
   ======================================== */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    margin-top: 1rem;
    font-size: 1rem;
}

/* ========================================
   スクロールバー
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-tertiary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ========================================
   レスポンシブ調整
   ======================================== */
@media (max-width: 1024px) {
    .task-list {
        width: 240px;
    }
    
    .project-name-input {
        max-width: 300px;
    }
}
