/* 基本設定 */
:root {
    --primary-color: #9b7fd4;
    --primary-hover: #8a6ec3;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    --radius: 8px;
}

.tajm-jobs-page {
    background-color: var(--bg-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    padding-bottom: 40px;
}

.tajm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* ページヘッダー */
.tajm-page-header {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    margin-bottom: 20px;
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 20px;
}

/* サイドバー */
.tajm-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-section {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.sidebar-section h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 10px;
    color: var(--text-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.section-header h3 {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.toggle-icon {
    font-weight: bold;
    color: var(--text-light);
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.select-wrapper {
    position: relative;
}

.tajm-select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--white);
    appearance: none;
    font-size: 14px;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-input-wrapper {
    flex: 1;
}

.price-input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.tag-search {
    display: flex;
    gap: 5px;
    position: relative;
}

.tag-input {
    flex: 1;
    padding: 8px 30px 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.tag-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-color);
}

.checkbox-label input {
    margin-right: 8px;
}

/* メインコンテンツ */
.tajm-main-content {
    flex: 1;
    min-width: 0;
    /* Flexbox内でのはみ出し防止 */
}

.search-bar-container {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.search-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #4a90e2;
    cursor: pointer;
    padding: 5px;
}

.filter-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
}

.filter-label {
    font-weight: bold;
    margin-right: 10px;
}

.filter-tag {
    background: var(--white);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.remove-filter {
    text-decoration: none;
    color: #999;
    font-weight: bold;
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-left: auto;
}

.tajm-select-small {
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    background-color: var(--white);
}

/* 仕事カード（グリッド表示） */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.job-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.job-card-thumbnail {
    height: 180px;
    background-color: #f0f0f0;
    position: relative;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background-color: #ddd;
}

.job-card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.job-category-label {
    color: #4a90e2;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
}

.job-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.job-title a {
    text-decoration: none;
    color: var(--text-color);
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.job-tag {
    background-color: #f0e6ff;
    color: #8a6ec3;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}

.more-tags {
    font-size: 12px;
    color: #999;
}

.job-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.job-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 12px;
}

.stars {
    color: #f5a623;
}

.rating-value {
    color: var(--text-light);
}

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    margin-top: auto;
}

.job-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
}

.job-actions {
    display: flex;
    gap: 10px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.icon-btn:hover {
    color: var(--primary-color);
}

.icon-btn.liked {
    color: #ff4081;
}

.no-jobs {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

/* 詳細ページスタイル */
.tajm-single-page {
    background-color: var(--bg-light);
    padding-bottom: 40px;
}

.tajm-main-column {
    flex: 1;
    min-width: 0;
}

.tajm-right-sidebar {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.single-job-title {
    font-size: 28px;
    font-weight: bold;
    margin: 10px 0;
    line-height: 1.3;
}

/* タブ */
.job-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* メディアエリア */
.job-media-area {
    width: 100%;
    height: 400px;
    background-color: #999;
    border-radius: 8px;
    margin-bottom: 30px;
}

.job-description {
    line-height: 1.8;
    margin-bottom: 30px;
    white-space: pre-wrap;
}

/* レビュー */
.reviews-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.average-rating {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.rating-number {
    font-size: 32px;
    font-weight: bold;
}

.review-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.review-header {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    background-color: #ccc;
    border-radius: 50%;
}

.reviewer-name {
    font-weight: bold;
    font-size: 14px;
}

.review-rating {
    font-size: 12px;
    color: #f5a623;
}

.review-date {
    color: #999;
    margin-left: 5px;
}

/* 右サイドバーカード */
.price-card,
.seller-profile-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.price-display {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.options-section {
    margin-bottom: 20px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

.purchase-btn {
    width: 100%;
    padding: 12px;
    background-color: #5db7de;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s;
}

.purchase-btn:hover {
    background-color: #4aa0c7;
}

.message-btn-outline {
    width: 100%;
    padding: 12px;
    background: white;
    border: 1px solid #5db7de;
    color: #5db7de;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.2s;
}

.message-btn-outline:hover {
    background: #f0f9fc;
}

.action-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-link {
    background: none;
    border: none;
    text-align: left;
    padding: 0;
    color: var(--text-light);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-link:hover {
    color: var(--primary-color);
}

/* 出品者プロフィール */
.seller-profile-card {
    text-align: center;
}

.seller-avatar-large {
    margin: 0 auto 10px;
    width: 80px;
    height: 80px;
    background-color: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seller-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.seller-bio {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.seller-contact {
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .tajm-container {
        flex-direction: column;
    }

    .tajm-sidebar {
        width: 100%;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .tajm-right-sidebar {
        width: 100%;
    }
} 
 
/* AIc[[_ */
.ai-tool-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.ai-tool-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.ai-tool-modal .modal-content {
    position: relative;
    max-width: 600px;
    margin: 50px auto;
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.ai-tool-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.ai-tool-modal .modal-close:hover {
    color: #333;
}

.ai-tool-modal .modal-header {
    margin-bottom: 20px;
}

.ai-tool-modal .modal-category {
    color: #4a90e2;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 5px;
}

.ai-tool-modal .modal-title {
    font-size: 24px;
    font-weight: bold;
    margin: 5px 0 10px 0;
    line-height: 1.3;
}

.ai-tool-modal .modal-meta {
    font-size: 12px;
    color: #999;
}

.ai-tool-modal .modal-image {
    width: 100%;
    height: 300px;
    background-color: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ai-tool-modal .modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
}

.ai-tool-modal .modal-description {
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
}

.ai-tool-modal .modal-action-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #c084fc 0%, #9b59b6 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
    transition: opacity 0.2s;
}

.ai-tool-modal .modal-action-btn:hover {
    opacity: 0.9;
}

.ai-tool-modal .modal-like {
    text-align: center;
}

.ai-tool-modal .modal-like-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    padding: 5px 10px;
    transition: color 0.2s;
}

.ai-tool-modal .modal-like-btn:hover {
    color: var(--primary-color);
}

.ai-tool-modal .modal-like-btn.liked {
    color: #ff4081;
}

/* AIc[y[Wp */
.tajm-ai-tools-page .job-card {
    cursor: pointer;
}

.tajm-ai-tools-page .job-description-preview {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tajm-ai-tools-page .job-card-footer {
    border-top: none;
    padding-top: 0;
    justify-content: flex-end;
}

/* AIc[y[W: 3Œ */
.tajm-ai-tools-page .jobs-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ^ubgȉ2 */
@media (max-width: 1024px) {
    .tajm-ai-tools-page .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* X}z1 */
@media (max-width: 768px) {
    .tajm-ai-tools-page .jobs-grid {
        grid-template-columns: 1fr;
    }
}
.tajm-gpts-page .jobs-grid { grid-template-columns: repeat(3, 1fr) !important; }
.tajm-columns-page .jobs-grid { grid-template-columns: repeat(3, 1fr) !important; }
.tajm-columns-page .job-card { cursor: pointer; }
.column-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; display: none; }
.column-modal .modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); }
.column-modal .modal-content { position: relative; max-width: 800px; margin: 30px auto; background: white; border-radius: 8px; padding: 30px; max-height: 90vh; overflow-y: auto; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); }
.column-modal .modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 24px; cursor: pointer; }
