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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

h1 {
    color: #2c3e50;
    font-size: 24px;
    text-align: center;
}

h2 {
    text-align: center;
}

h3 {
    text-align: center;
}

#userEmail {
    font-weight: 600;
    color: #333;
}

#userRoleDisplay {
    color: #666;
    font-style: italic;
}

.folder-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

.folder-list {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    background: white;
}

.breadcrumb {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 20px;
}

.path {
    color: #666;
    font-size: 14px;
}

.folder-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.folder-item, .file-item {
    padding: 16px 20px;
    border: none;
    border-bottom: 1px solid #e1e1e1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    background-color: #fff;
    justify-content: space-between;
    min-height: 60px;
}

.folder-item .folder-name, .file-item .file-name {
    flex: 1;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
}

.folder-buttons {
    display: flex;
    gap: 8px;
}

.move-btn {
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.move-btn:hover {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.copy-btn {
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
    background-color: #17a2b8;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.copy-btn:hover {
    background-color: #138496;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.sort-btn {
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.sort-btn:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.preview-btn {
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.preview-btn:hover {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.complete-btn {
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
    background-color: #6f42c1;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
    font-weight: 500;
}

.complete-btn:hover {
    background-color: #5a32a3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.complete-btn:disabled {
    background-color: #6c757d;
    color: #adb5bd;
    cursor: not-allowed;
    filter: grayscale(100%);
    opacity: 0.6;
}

.complete-btn:disabled:hover {
    background-color: #6c757d;
}

.folder-item:hover, .file-item:hover {
    background-color: #f8f9fa;
    transform: none;
    box-shadow: none;
}

.folder-item:last-child, .file-item:last-child {
    border-bottom: none;
}

.folder-item {
    color: #2c3e50;
    font-weight: 500;
}

.file-item {
    color: #666;
}

.folder-icon, .file-icon {
    margin-right: 15px;
    font-size: 28px;
    width: 35px;
    text-align: center;
    display: inline-block;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.auth-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* フォームセクションのタイトル中央揃え */
.add-user-section h3 {
    text-align: center;
}

/* 選別フォルダプレビューのタイトル中央揃え */
.preview-section h3 {
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navigation-controls {
    margin-bottom: 15px;
}

#backBtn {
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
    background-color: #6c757d;
    margin-right: 10px;
}

#backBtn:hover {
    background-color: #5a6268;
}

#logoutBtn {
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#logoutBtn:hover {
    background-color: #c82333;
}

.error {
    color: #e74c3c;
    text-align: center;
    padding: 20px;
    background-color: #fdf2f2;
    border-radius: 4px;
    margin: 10px 0;
}

/* 画像選別ページのスタイル */
.sorting-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.sorting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e1e1;
}

.sorting-header h2 {
    color: #2c3e50;
    margin: 0;
}

.sorting-progress {
    display: flex;
    align-items: center;
    gap: 15px;
}

#imageCounter {
    font-weight: bold;
    color: #666;
}

#exitSortingBtn {
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
    background-color: #6c757d;
}

#exitSortingBtn:hover {
    background-color: #5a6268;
}

.image-display {
    text-align: center;
    margin-bottom: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

#sortingImage {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sorting-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.sort-ok-btn {
    background-color: #28a745;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.1s ease;
    margin: 0 10px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.sort-ok-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.sort-ok-btn:active {
    background-color: #1e7e34;
    transform: translateY(0);
    transition: all 0.05s ease;
}

.sort-ng-btn {
    background-color: #dc3545;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.1s ease;
    margin: 0 10px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.sort-ng-btn:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

.sort-ng-btn:active {
    background-color: #bd2130;
    transform: translateY(0);
    transition: all 0.05s ease;
}

.sort-skip-btn {
    background-color: #ffc107;
    color: #212529;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.1s ease;
    margin: 0 10px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.sort-skip-btn:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}

.sort-skip-btn:active {
    background-color: #d39e00;
    transform: translateY(0);
    transition: all 0.05s ease;
}

.sorting-info {
    text-align: center;
    color: #666;
}

.sorting-info p {
    margin: 0;
    font-size: 14px;
}

#currentImageName {
    font-weight: bold;
    color: #2c3e50;
}

/* フォルダプレビューのスタイル */
.folder-preview {
    margin-top: 30px;
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.preview-section {
    flex: 1;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 2px solid #e9ecef;
}

.preview-section h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #495057;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.preview-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 5px;
}

.preview-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.preview-image:hover {
    transform: scale(1.1);
    border-color: #007bff;
}

.preview-placeholder {
    width: 60px;
    height: 60px;
    background-color: #e9ecef;
    border: 1px dashed #adb5bd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #6c757d;
    text-align: center;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    /* コンテナの調整 */
    .container {
        padding: 10px;
    }
    
    /* ヘッダーのモバイル対応 */
    header {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        text-align: center;
    }
    
    h1 {
        font-size: 20px;
        text-align: center;
    }
    
    h2, h3 {
        text-align: center;
    }
    
    /* ユーザー情報のモバイル対応 */
    .user-info {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    #userEmail {
        font-size: 14px;
    }
    
    #userRoleDisplay {
        font-size: 12px;
    }
    
    /* ボタンのモバイル最適化 */
    button {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    #logoutBtn, #userManagementBtn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    /* フォルダリストのモバイル対応 */
    .folder-item, .file-item {
        padding: 12px 15px;
        min-height: 55px;
    }
    
    .folder-item .folder-name, .file-item .file-name {
        font-size: 16px;
    }
    
    .folder-icon, .file-icon {
        font-size: 24px;
        width: 30px;
        margin-right: 12px;
    }
    
    .folder-buttons {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .move-btn, .copy-btn, .sort-btn, .preview-btn, .complete-btn {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    /* 選別画面のモバイル対応 */
    .sorting-container {
        padding: 10px;
    }
    
    .sorting-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .sorting-header h2 {
        font-size: 20px;
        text-align: center;
    }
    
    #imageCounter {
        font-size: 14px;
        text-align: center;
    }
    
    .sorting-progress {
        justify-content: center;
    }
    
    .sorting-info {
        text-align: center;
    }
    
    /* 画像表示エリアのモバイル最適化 */
    .image-display {
        padding: 10px;
        margin-bottom: 20px;
    }
    
    #sortingImage {
        max-height: 400px;
        width: 100%;
        object-fit: contain;
    }
    
    /* 選別ボタンのモバイル最適化 */
    .sorting-controls {
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 10px;
    }
    
    .sort-ok-btn, .sort-ng-btn, .sort-skip-btn {
        font-size: 16px;
        padding: 12px 20px;
        margin: 0;
        flex: 1;
        min-width: 80px;
    }
    
    /* タッチフィードバック強化 */
    .sort-ok-btn:active, .sort-ng-btn:active, .sort-skip-btn:active {
        transform: scale(0.95);
    }
    
    /* フォルダプレビューのモバイル対応 */
    .folder-preview {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
    }
    
    .preview-images {
        max-height: 180px;
    }
    
    .preview-image {
        width: 80px;
        height: 80px;
    }
    
    /* ログインページのモバイル対応 */
    .login-container {
        padding: 15px;
        text-align: center;
    }
    
    .role-selection {
        flex-direction: column;
        gap: 15px;
    }
    
    .role-card {
        max-width: 100%;
        padding: 20px;
        text-align: center;
    }
    
    .worker-list {
        grid-template-columns: 1fr;
    }
    
    .step-indicator {
        text-align: center;
    }
    
    /* ユーザー管理のモバイル対応 */
    .user-management-container {
        padding: 10px;
    }
    
    .management-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .add-user-form {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .users-table {
        font-size: 12px;
    }
    
    .users-table th,
    .users-table td {
        padding: 8px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 2px;
    }
    
    .edit-btn, .delete-btn {
        font-size: 11px;
        padding: 4px 8px;
        width: 100%;
    }
}

/* 画像拡大表示モーダル */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 2001;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
    word-break: break-all;
    flex: 1;
}

.modal-header-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

#modalImagePosition {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

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

.modal-close:hover {
    background-color: #e9ecef;
    color: #495057;
}

.modal-body {
    padding: 20px;
    text-align: center;
    max-height: 70vh;
    overflow: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalImage {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-btn:disabled:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%) scale(1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-footer-left {
    color: #6c757d;
    font-size: 14px;
}

.modal-footer-right {
    display: flex;
    gap: 10px;
}

.move-image-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: 500;
}

.move-image-btn:hover {
    background-color: #0056b3;
}

.move-image-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.move-modal-btn {
    padding: 8px 16px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-left: 10px;
    font-size: 14px;
}

.move-modal-btn:hover {
    background-color: #218838;
}

.move-modal-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* モーダルアニメーション */
.image-modal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show {
    opacity: 1;
}

.modal-content {
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.image-modal.show .modal-content {
    transform: scale(1);
}

/* レスポンシブ対応 - モーダル */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 10px 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .modal-header-buttons {
        gap: 10px;
    }
    
    #modalImagePosition {
        font-size: 12px;
    }
    
    .modal-body {
        padding: 15px;
        max-height: 75vh;
    }
    
    #modalImage {
        max-height: 65vh;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .prev-btn {
        left: 5px;
    }
    
    .next-btn {
        right: 5px;
    }
    
    .modal-footer {
        padding: 10px 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-footer-left {
        font-size: 12px;
    }
    
    .move-image-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* スマートフォン（縦向き）用の追加スタイル */
@media (max-width: 480px) {
    /* さらに小さい画面向けの調整 */
    h1 {
        font-size: 18px;
        text-align: center;
    }
    
    h2, h3 {
        text-align: center;
    }
    
    /* 選別ボタンを縦に配置 */
    .sorting-controls {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }
    
    .sort-ok-btn, .sort-ng-btn, .sort-skip-btn {
        width: 100%;
        margin: 5px 0;
    }
    
    /* 画像を画面幅に最適化 */
    #sortingImage {
        max-height: 60vh;
        width: 100%;
        object-fit: contain;
    }
    
    /* プレビュー画像をさらに大きく */
    .preview-image {
        width: 60px;
        height: 60px;
    }
    
    /* モーダルの調整 */
    .modal-content {
        margin: 0;
        border-radius: 0;
        max-width: 100vw;
        max-height: 100vh;
        height: 100vh;
    }
    
    #modalImage {
        max-height: 50vh;
    }
}

/* タッチデバイス向けの最適化 */
@media (hover: none) and (pointer: coarse) {
    /* タッチ操作向けのボタンサイズ拡大 */
    .sort-ok-btn, .sort-ng-btn, .sort-skip-btn {
        min-height: 48px;
        font-size: 18px;
    }
    
    /* タップターゲットを大きく */
    .folder-item, .file-item {
        min-height: 48px;
    }
    
    /* プレビュー画像のタップエリアを拡大 */
    .preview-image {
        padding: 4px;
    }
    
    /* モーダルのナビゲーションボタンを大きく */
    .nav-btn {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    /* ホバーエフェクトを無効化 */
    .folder-item:hover, .file-item:hover {
        background-color: inherit;
    }
    
    .preview-image:hover {
        transform: none;
    }
}

/* 横向き表示の最適化 */
@media (max-width: 768px) and (orientation: landscape) {
    /* 横向き時は画像の高さを制限（ビューポートの高さに合わせる） */
    #sortingImage {
        max-height: 40vh;
    }
    
    /* ヘッダーをコンパクトに */
    header {
        padding: 8px;
    }
    
    /* 選別ボタンを横に配置 */
    .sorting-controls {
        flex-direction: row;
        margin-bottom: 10px;
    }
    
    /* プレビューセクションを簡略化（非表示にしない） */
    .folder-preview {
        margin-top: 10px;
    }
    
    .preview-images {
        max-height: 100px;
    }
    
    .preview-image {
        width: 50px;
        height: 50px;
    }
}

/* エラーログ表示のスタイル */
.log-container {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 20px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.log-container h4 {
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e1e1e1;
    font-size: 16px;
    text-align: center;
}

.log-entry {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.log-entry.error-log {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.log-entry.info-log {
    background-color: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

.log-time {
    color: #6c757d;
    font-size: 12px;
    margin-right: 8px;
    white-space: nowrap;
}

.log-message {
    flex: 1;
    word-break: break-word;
}

.log-message.error-level {
    font-weight: 500;
}

.log-message.log-level {
    font-weight: normal;
}

.log-delete {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 16px;
    margin-left: 8px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.log-delete:hover {
    color: #495057;
}

/* プレビューページのスタイル */
.preview-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e1e1;
}

.preview-header h2 {
    color: #2c3e50;
    margin: 0;
    text-align: center;
    flex: 1;
}

.preview-controls {
    display: flex;
    gap: 10px;
}

#backToMainBtn {
    padding: 8px 16px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#backToMainBtn:hover {
    background-color: #545b62;
}

.preview-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.preview-section-large {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background-color: #f8f9fa;
}

.preview-section-large h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.preview-grid .preview-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}

.preview-grid .preview-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-color: #007bff;
}

.preview-grid .preview-placeholder {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    border: 1px dashed #6c757d;
    border-radius: 8px;
    color: #6c757d;
    font-size: 14px;
    cursor: pointer;
}

.preview-grid .preview-placeholder:hover {
    background-color: #dee2e6;
}

/* プレビューページ用のレスポンシブ対応 */
@media (max-width: 768px) {
    .preview-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        text-align: center;
    }
    
    .preview-header h2 {
        text-align: center;
    }
    
    .preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .preview-grid .preview-image {
        height: 120px;
    }
    
    .preview-grid .preview-placeholder {
        height: 120px;
        font-size: 12px;
    }
}

/* その他の要素の中央揃え */
.worker-item {
    text-align: center;
}

.modal-header h3 {
    text-align: center;
}

/* ブレッドクラム中央揃え（モバイル時） */
@media (max-width: 768px) {
    .breadcrumb {
        text-align: center;
    }
    
    .navigation-controls {
        text-align: center;
    }
} 