/* ========================================
   TalentFlow Public Styles — v3 Refined
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --tf-primary: #e8546c;
    --tf-primary-light: #fce4ec;
    --tf-primary-hover: #d63e56;
    --tf-primary-dark: #c62842;
    --tf-primary-glow: rgba(232, 84, 108, 0.12);
    --tf-primary-gradient: linear-gradient(135deg, #e8546c 0%, #f06292 100%);
    --tf-primary-gradient-bold: linear-gradient(135deg, #d63e56 0%, #e8546c 50%, #f06292 100%);
    --tf-success: #10b981;
    --tf-line: #00B900;
    --tf-text: #16171d;
    --tf-text-mid: #494b5a;
    --tf-text-light: #8b8da0;
    --tf-border: #e5e6ee;
    --tf-border-light: #eff0f6;
    --tf-bg: #f5f6fa;
    --tf-bg-warm: #fff5f7;
    --tf-bg-card: #ffffff;
    --tf-radius: 16px;
    --tf-radius-sm: 10px;
    --tf-radius-xs: 6px;
    --tf-shadow-xs: 0 1px 2px rgba(16,17,29,0.04);
    --tf-shadow: 0 2px 12px rgba(16,17,29,0.05);
    --tf-shadow-md: 0 4px 24px rgba(16,17,29,0.07);
    --tf-shadow-lg: 0 12px 48px rgba(16,17,29,0.10);
    --tf-shadow-glow: 0 4px 24px rgba(232,84,108,0.12);
    --tf-shadow-glow-lg: 0 8px 40px rgba(232,84,108,0.18);
    --tf-font: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', sans-serif;
    --tf-font-num: 'Inter', 'Noto Sans JP', sans-serif;
    --tf-transition: cubic-bezier(0.4, 0, 0.2, 1);
    --tf-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* ========================================
   Hero Search Section
   ======================================== */
.tf-hero-wrap {
    position: relative;
    background: linear-gradient(135deg, var(--tf-hero-start, #e8546c) 0%, var(--tf-hero-end, #c62842) 100%);
    border-radius: 24px;
    padding: 32px 28px 28px;
    margin: 0 auto 28px;
    max-width: 860px;
    font-family: var(--tf-font);
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.tf-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(232,84,108,0.85) 0%, rgba(198,40,66,0.9) 100%);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.tf-hero-wrap[style*="background-image"] .tf-hero-overlay {
    opacity: 1;
}
.tf-hero-content {
    position: relative; z-index: 1;
}

/* Total Count */
.tf-hero-total {
    color: rgba(255,255,255,0.95);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}
.tf-hero-total strong {
    font-family: var(--tf-font-num);
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
    margin: 0 2px;
}

/* Subtitle / Date */
.tf-hero-subtitle {
    color: #fde047;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
}

/* Category Buttons */
.tf-hero-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.tf-hero-cat-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 12px 16px;
    background: var(--tf-bg-card);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-family: var(--tf-font);
    transition: all 0.3s var(--tf-spring);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.tf-hero-cat-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.tf-hero-cat-btn:active { transform: scale(0.97); }

.tf-hero-cat-icon {
    display: flex; align-items: center; justify-content: center;
    color: var(--tf-primary);
    opacity: 0.8;
}
.tf-hero-cat-btn:hover .tf-hero-cat-icon { opacity: 1; }

.tf-hero-cat-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--tf-text);
    letter-spacing: 0.06em;
}

.tf-hero-cat-arrow {
    position: absolute;
    bottom: 8px; right: 10px;
    color: var(--tf-text-light);
    opacity: 0.4;
    transition: all 0.25s;
}
.tf-hero-cat-btn:hover .tf-hero-cat-arrow {
    opacity: 0.8;
    color: var(--tf-primary);
    transform: translate(2px, -2px);
}

.tf-hero-cat-btn .tf-cat-selected-badge {
    position: absolute; top: 6px; right: 6px;
    background: var(--tf-primary-gradient); color: #fff;
    font-family: var(--tf-font-num);
    font-size: 11px; font-weight: 700;
    min-width: 22px; height: 22px; line-height: 22px;
    text-align: center; border-radius: 11px; padding: 0 6px;
    box-shadow: 0 2px 8px rgba(232,84,108,0.35);
    animation: tfBadgePop 0.35s var(--tf-spring);
}
@keyframes tfBadgePop { 0%{transform:scale(0)} 60%{transform:scale(1.15)} 100%{transform:scale(1)} }

/* Keyword Search Bar */
.tf-hero-search-bar {
    display: flex;
    align-items: center;
    background: var(--tf-bg-card);
    border-radius: 60px;
    padding: 6px 6px 6px 22px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    transition: all 0.3s var(--tf-transition);
}
.tf-hero-search-bar:focus-within {
    box-shadow: 0 4px 24px rgba(0,0,0,0.12), 0 0 0 3px rgba(255,255,255,0.3);
}

.tf-hero-keyword-input {
    flex: 1;
    padding: 10px 12px 10px 0;
    border: none;
    font-family: var(--tf-font);
    font-size: 15px;
    font-weight: 500;
    color: var(--tf-text);
    outline: none;
    background: transparent;
    min-width: 0;
}
.tf-hero-keyword-input::placeholder {
    color: var(--tf-text-light);
    font-weight: 400;
    font-size: 14px;
}

.tf-hero-search-btn {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--tf-text);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--tf-spring);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.tf-hero-search-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    background: var(--tf-primary);
}
.tf-hero-search-btn:active { transform: scale(0.94); }

/* ========================================
   Modal — Glass Design
   ======================================== */
.tf-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(16,17,29,0.5);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex; align-items: flex-start; justify-content: center;
    padding: 48px 16px; overflow-y: auto;
    animation: tfFadeIn 0.2s var(--tf-transition);
}
@keyframes tfFadeIn { from{opacity:0} to{opacity:1} }
@keyframes tfSlideUp { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }

.tf-modal {
    background: var(--tf-bg-card); border-radius: 24px;
    width: 100%; max-width: 860px; max-height: calc(100vh - 96px);
    display: flex; flex-direction: column;
    box-shadow: 0 24px 80px rgba(16,17,29,0.2), 0 0 0 1px rgba(0,0,0,0.04);
    animation: tfSlideUp 0.35s var(--tf-spring);
    overflow: hidden; font-family: var(--tf-font);
}

/* Modal Header */
.tf-modal-header {
    display: flex;
    background: var(--tf-primary-gradient-bold);
    position: relative; flex-shrink: 0;
    padding: 6px 52px 0 6px;
    min-height: 56px;
}
.tf-modal-tab {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 16px 14px; background: none; border: none;
    color: rgba(255,255,255,0.65);
    font-family: var(--tf-font); font-size: 13.5px; font-weight: 600;
    cursor: pointer; transition: all 0.25s var(--tf-transition);
    white-space: nowrap; border-radius: 16px 16px 0 0;
    margin-bottom: -1px; position: relative;
}
.tf-modal-tab:hover { color: #fff; background: rgba(255,255,255,0.1); }
.tf-modal-tab.active {
    color: var(--tf-primary); background: var(--tf-bg-card);
    font-weight: 700;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}
.tf-modal-tab .tf-tab-icon { display: flex; align-items: center; }
.tf-modal-close {
    position: absolute; top: 10px; right: 10px;
    width: 36px; height: 36px; border: none;
    background: rgba(255,255,255,0.15); color: #fff;
    font-size: 15px; border-radius: 12px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s var(--tf-transition); z-index: 2;
    backdrop-filter: blur(4px);
}
.tf-modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.08) rotate(90deg);
}

/* Modal Body */
.tf-modal-body {
    padding: 28px 32px; overflow-y: auto; flex: 1;
    min-height: 300px;
    scrollbar-width: thin;
    scrollbar-color: var(--tf-border) transparent;
}
.tf-modal-body::-webkit-scrollbar { width: 6px; }
.tf-modal-body::-webkit-scrollbar-thumb { background: var(--tf-border); border-radius: 3px; }
.tf-tab-content { display: none; }
.tf-tab-content.active { display: block; animation: tfFadeContent 0.2s var(--tf-transition); }
@keyframes tfFadeContent { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }

.tf-modal-section-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 16px; font-weight: 700; color: var(--tf-text);
    margin: 0 0 24px; padding-bottom: 16px;
    border-bottom: 2px solid var(--tf-border-light);
    letter-spacing: 0.01em;
}
.tf-modal-section-title svg { color: var(--tf-primary); }

/* ========================================
   Filter Items — Refined Checkboxes
   ======================================== */
.tf-filter-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tf-filter-item {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 16px; border: 1.5px solid var(--tf-border);
    border-radius: var(--tf-radius-sm); cursor: pointer;
    transition: all 0.2s var(--tf-transition);
    font-size: 14px; background: var(--tf-bg-card);
    user-select: none; position: relative;
}
.tf-filter-item:hover {
    border-color: rgba(232,84,108,0.35);
    background: var(--tf-bg-warm);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(232,84,108,0.06);
}
.tf-filter-item.selected {
    border-color: var(--tf-primary);
    background: linear-gradient(135deg, #fff5f7 0%, #fce4ec 100%);
    box-shadow: 0 0 0 3px var(--tf-primary-glow), 0 2px 8px rgba(232,84,108,0.08);
}

/* Custom Checkbox */
.tf-filter-item input[type="checkbox"] {
    appearance: none; -webkit-appearance: none;
    width: 20px; height: 20px;
    border: 2px solid var(--tf-border);
    border-radius: 6px; cursor: pointer; flex-shrink: 0;
    position: relative;
    transition: all 0.2s var(--tf-spring);
    background: var(--tf-bg-card);
}
.tf-filter-item input[type="checkbox"]:checked {
    background: var(--tf-primary); border-color: var(--tf-primary);
    transform: scale(1.05);
}
.tf-filter-item input[type="checkbox"]:checked::after {
    content: ''; position: absolute; left: 5px; top: 2px;
    width: 6px; height: 10px; border: solid #fff;
    border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
    animation: tfCheckPop 0.2s var(--tf-spring);
}
@keyframes tfCheckPop { from{transform:rotate(45deg) scale(0)} to{transform:rotate(45deg) scale(1)} }

.tf-filter-item .tf-filter-label {
    flex: 1; color: var(--tf-text); font-weight: 500; line-height: 1.4;
}
.tf-filter-item .tf-filter-count {
    font-family: var(--tf-font-num);
    font-size: 12px; font-weight: 600; color: var(--tf-text-light);
    background: var(--tf-bg); padding: 3px 10px; border-radius: 12px;
    white-space: nowrap; transition: all 0.2s;
}
.tf-filter-item.selected .tf-filter-count {
    background: var(--tf-primary); color: #fff;
    box-shadow: 0 2px 6px rgba(232,84,108,0.3);
}

/* ========================================
   Location Layout
   ======================================== */
.tf-location-layout {
    display: grid; grid-template-columns: 230px 1fr; gap: 0;
    border: 1.5px solid var(--tf-border); border-radius: var(--tf-radius);
    overflow: hidden; min-height: 340px;
}
.tf-location-prefs {
    border-right: 1.5px solid var(--tf-border);
    overflow-y: auto; max-height: 420px; background: var(--tf-bg);
    scrollbar-width: thin; scrollbar-color: var(--tf-border) transparent;
}
.tf-location-pref-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; font-size: 14px; font-weight: 500;
    cursor: pointer; border-bottom: 1px solid var(--tf-border-light);
    transition: all 0.15s var(--tf-transition); color: var(--tf-text-mid);
}
.tf-location-pref-item:hover { background: var(--tf-bg-warm); color: var(--tf-primary); }
.tf-location-pref-item.active {
    background: var(--tf-primary); color: #fff; font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}
.tf-location-pref-item .tf-pref-count {
    font-family: var(--tf-font-num);
    font-size: 12px; opacity: 0.7;
}
.tf-location-pref-item .tf-pref-arrow { font-size: 11px; transition: transform 0.15s; }
.tf-location-pref-item:hover .tf-pref-arrow,
.tf-location-pref-item.active .tf-pref-arrow { transform: translateX(3px); }
.tf-location-cities { padding: 24px; overflow-y: auto; max-height: 420px; }
.tf-location-cities-title {
    font-size: 15px; font-weight: 700; color: var(--tf-primary);
    margin: 0 0 16px; display: flex; align-items: center; gap: 6px;
}
.tf-location-cities .tf-filter-grid { grid-template-columns: repeat(2, 1fr); }
.tf-hint {
    color: var(--tf-text-light); font-size: 14px; text-align: center;
    padding: 60px 16px; font-weight: 500; line-height: 1.7;
}

/* ========================================
   Conditions Layout
   ======================================== */
.tf-conditions-layout {
    display: grid; grid-template-columns: 190px 1fr; gap: 0;
    border: 1.5px solid var(--tf-border); border-radius: var(--tf-radius);
    overflow: hidden; min-height: 300px;
}
.tf-conditions-categories {
    border-right: 1.5px solid var(--tf-border); background: var(--tf-bg);
    display: flex; flex-direction: column;
}
.tf-cond-cat-btn {
    display: flex; align-items: center; padding: 15px 18px;
    font-family: var(--tf-font); font-size: 14px; font-weight: 500;
    background: none; border: none; border-bottom: 1px solid var(--tf-border-light);
    cursor: pointer; color: var(--tf-text-mid);
    transition: all 0.15s var(--tf-transition); text-align: left;
}
.tf-cond-cat-btn:hover { background: var(--tf-bg-warm); color: var(--tf-primary); }
.tf-cond-cat-btn.active {
    background: var(--tf-primary); color: #fff; font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}
.tf-cond-cat-btn::after { content: '›'; margin-left: auto; font-size: 15px; font-weight: 600; transition: transform 0.15s; }
.tf-cond-cat-btn:hover::after, .tf-cond-cat-btn.active::after { transform: translateX(3px); }
.tf-conditions-options { padding: 24px; overflow-y: auto; max-height: 360px; }

/* ========================================
   Modal Footer
   ======================================== */
.tf-modal-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 32px; border-top: 1.5px solid var(--tf-border-light);
    background: var(--tf-bg); flex-shrink: 0;
}
.tf-clear-all-btn {
    background: none; border: none; color: var(--tf-text-light);
    font-family: var(--tf-font); font-size: 14px; font-weight: 600;
    cursor: pointer; padding: 10px 8px; transition: all 0.2s;
    border-radius: 8px;
}
.tf-clear-all-btn:hover { color: var(--tf-primary); background: var(--tf-bg-warm); }

.tf-modal-search-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 40px; background: var(--tf-primary-gradient-bold);
    color: #fff; border: none; border-radius: 16px;
    font-family: var(--tf-font); font-size: 15px; font-weight: 700;
    cursor: pointer; transition: all 0.3s var(--tf-spring);
    box-shadow: 0 4px 20px rgba(232,84,108,0.3);
    letter-spacing: 0.03em;
    position: relative; overflow: hidden;
}
.tf-modal-search-btn::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
    border-radius: inherit;
}
.tf-modal-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--tf-shadow-glow-lg);
}
.tf-modal-search-btn:active { transform: translateY(0) scale(0.98); }

/* Mobile Bottom Tabs */
.tf-modal-bottom-tabs {
    display: none; border-top: 1.5px solid var(--tf-border-light);
    background: var(--tf-bg-card); flex-shrink: 0;
}
.tf-modal-btab {
    flex: 1; padding: 12px 8px; background: none; border: none;
    border-top: 3px solid transparent; font-family: var(--tf-font);
    font-size: 12px; color: var(--tf-text-light);
    cursor: pointer; font-weight: 600; transition: all 0.2s;
}
.tf-modal-btab.active { color: var(--tf-primary); border-top-color: var(--tf-primary); }

/* ========================================
   Selected Filters Tags
   ======================================== */
.tf-selected-filters {
    display: flex; flex-wrap: wrap; gap: 8px;
    max-width: 780px; margin: 0 auto 28px; padding: 0 4px;
    animation: tfFadeContent 0.3s var(--tf-transition);
}
.tf-filter-tag {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px; background: var(--tf-bg-card);
    color: var(--tf-primary-dark); border: 1.5px solid var(--tf-primary-light);
    border-radius: 24px; font-family: var(--tf-font); font-size: 13px; font-weight: 500;
    transition: all 0.2s; box-shadow: var(--tf-shadow-xs);
    animation: tfTagIn 0.3s var(--tf-spring);
}
@keyframes tfTagIn { from{transform:scale(0.9);opacity:0} to{transform:scale(1);opacity:1} }
.tf-filter-tag:hover { border-color: var(--tf-primary); box-shadow: 0 2px 8px rgba(232,84,108,0.1); }
.tf-filter-tag-remove {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; background: var(--tf-primary-light);
    color: var(--tf-primary); border-radius: 50%; font-size: 10px;
    cursor: pointer; line-height: 1; border: none;
    transition: all 0.2s var(--tf-spring); font-weight: 700;
}
.tf-filter-tag-remove:hover {
    background: var(--tf-primary); color: #fff;
    transform: rotate(90deg);
}

/* ========================================
   Loading
   ======================================== */
.tf-loading-spinner { display: flex; justify-content: center; padding: 48px; }
.tf-loading-spinner::after {
    content: ''; width: 36px; height: 36px;
    border: 3px solid var(--tf-border-light);
    border-top-color: var(--tf-primary); border-radius: 50%;
    animation: tfSpin 0.65s linear infinite;
}
@keyframes tfSpin { to{transform:rotate(360deg)} }

/* ========================================
   Search Results — Refined
   ======================================== */
.tf-search-results { font-family: var(--tf-font); }

.tf-result-count {
    color: var(--tf-text-mid); font-size: 14px; font-weight: 500;
    margin-bottom: 24px; max-width: 780px;
    margin-left: auto; margin-right: auto; padding: 0 4px;
    display: flex; align-items: center; gap: 8px;
}
.tf-result-count strong {
    color: var(--tf-primary);
    font-family: var(--tf-font-num);
    font-size: 22px; font-weight: 800;
    letter-spacing: -0.02em;
}

/* ========================================
   Job Grid & Cards — Premium v3
   ======================================== */
.tf-job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px; max-width: 1200px; margin: 0 auto;
}

.tf-job-card {
    background: var(--tf-bg-card);
    border-radius: var(--tf-radius);
    padding: 0;
    border: 1.5px solid var(--tf-border);
    transition: all 0.35s var(--tf-transition);
    overflow: hidden;
    position: relative;
    display: flex; flex-direction: column;
    animation: tfCardIn 0.4s var(--tf-transition) backwards;
}
.tf-job-card:nth-child(1) { animation-delay: 0s; }
.tf-job-card:nth-child(2) { animation-delay: 0.05s; }
.tf-job-card:nth-child(3) { animation-delay: 0.05s; }
.tf-job-card:nth-child(4) { animation-delay: 0.1s; }
.tf-job-card:nth-child(5) { animation-delay: 0.1s; }
.tf-job-card:nth-child(6) { animation-delay: 0.15s; }
.tf-job-card:nth-child(n+7) { animation-delay: 0.2s; }
@keyframes tfCardIn { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }

.tf-job-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: var(--tf-border-light);
    transition: all 0.35s var(--tf-transition);
}
.tf-job-card:hover {
    border-color: rgba(232,84,108,0.2);
    box-shadow: var(--tf-shadow-md);
    transform: translateY(-4px);
}
.tf-job-card:hover::before { background: var(--tf-primary-gradient); }

.tf-job-card-inner {
    padding: 24px 24px 20px;
    flex: 1; display: flex; flex-direction: column;
}

/* Card Header Badges */
.tf-job-card-header {
    display: flex; gap: 8px; margin-bottom: 16px;
    flex-wrap: wrap; align-items: center;
}
.tf-badge-new {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 6px; font-size: 10px; font-weight: 800;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: #fff; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4;
}
.tf-job-type {
    display: inline-flex; align-items: center; padding: 4px 12px;
    border-radius: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
}
.tf-type-full_time { background: #dbeafe; color: #1e40af; }
.tf-type-part_time { background: #d1fae5; color: #065f46; }
.tf-type-contract { background: #fef3c7; color: #92400e; }
.tf-type-temporary { background: #ede9fe; color: #5b21b6; }
.tf-type-intern { background: #fce7f3; color: #9d174d; }
.tf-type-outsource { background: #e0e7ff; color: #3730a3; }
.tf-badge-remote {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 600;
    background: #ecfdf5; color: #047857;
}

/* Company Row */
.tf-job-company-row {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px;
}
.tf-job-company-icon {
    width: 40px; height: 40px; border-radius: var(--tf-radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 800; color: #fff; flex-shrink: 0;
    letter-spacing: -0.02em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.tf-job-company-name {
    font-size: 13px; font-weight: 500; color: var(--tf-text-light);
    line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Title */
.tf-job-title {
    margin: 0 0 14px;
    font-size: 16.5px; font-weight: 700; line-height: 1.55;
    letter-spacing: 0.01em;
}
.tf-job-title a {
    color: var(--tf-text); text-decoration: none;
    transition: color 0.2s;
}
.tf-job-title a:hover { color: var(--tf-primary); }

/* Meta Items */
.tf-job-meta {
    display: flex; flex-direction: column;
    gap: 7px; margin-bottom: 14px;
}
.tf-meta-item {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 13px; color: var(--tf-text-mid);
    font-weight: 500; line-height: 1.5;
}
.tf-meta-item .tf-meta-icon {
    display: flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; flex-shrink: 0;
    color: var(--tf-text-light); margin-top: 1px;
}

/* Salary Chip */
.tf-salary-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d; border-radius: 8px;
    font-size: 14px; font-weight: 700; color: #92400e;
    margin-bottom: 14px;
}
.tf-salary-chip svg { color: #f59e0b; }

/* Excerpt */
.tf-job-excerpt {
    font-size: 13.5px; color: var(--tf-text-light); line-height: 1.75;
    margin-bottom: 0; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* Card Footer */
.tf-job-card-footer {
    display: flex; gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--tf-border-light);
    background: var(--tf-bg);
}
.tf-job-card-footer .tf-btn { flex: 1; }

/* Card Image (TOP画像) */
.tf-job-card-image {
    display: block; position: relative;
    width: 100%; overflow: hidden;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.tf-job-card-image img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.5s var(--tf-transition);
}
.tf-job-card:hover .tf-job-card-image img { transform: scale(1.05); }
/* 画像付きカードのトップラインを非表示 */
.tf-card-has-image::before { display: none; }
.tf-card-has-image:hover { transform: translateY(-5px); }
/* 画像下部にグラデーションオーバーレイ */
.tf-job-card-image::after {
    content: ''; position: absolute;
    bottom: 0; left: 0; right: 0; height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.25) 0%, transparent 100%);
    pointer-events: none;
}
.tf-card-badge-recommend {
    position: absolute; bottom: 10px; left: 10px; z-index: 2;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 12px; border-radius: 6px;
    font-size: 11px; font-weight: 700; line-height: 1.4;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff; letter-spacing: 0.02em;
    box-shadow: 0 2px 10px rgba(16,185,129,0.35);
    backdrop-filter: blur(4px);
}

/* Bookmark Button */
.tf-btn-bookmark {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 16px; border-radius: var(--tf-radius-sm);
    font-family: var(--tf-font); font-size: 13px; font-weight: 600;
    background: #fff; color: var(--tf-primary);
    border: 1.5px solid var(--tf-primary);
    cursor: pointer; transition: all 0.25s var(--tf-transition);
    line-height: 1.4; flex: 1;
}
.tf-btn-bookmark:hover {
    background: rgba(232,84,108,0.06);
    transform: translateY(-1px);
}
.tf-btn-bookmark svg { flex-shrink: 0; }

/* ========================================
   Buttons
   ======================================== */
.tf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; border-radius: var(--tf-radius-sm);
    font-family: var(--tf-font); font-size: 13.5px; font-weight: 600;
    text-decoration: none; text-align: center; cursor: pointer;
    border: none; transition: all 0.25s var(--tf-transition);
    line-height: 1.4; letter-spacing: 0.02em;
}
.tf-btn svg { flex-shrink: 0; }
.tf-btn-primary {
    background: var(--tf-primary-gradient); color: #fff !important;
    box-shadow: 0 2px 8px rgba(232,84,108,0.2);
}
.tf-btn-primary:hover {
    box-shadow: 0 4px 16px rgba(232,84,108,0.3);
    transform: translateY(-1px);
}
.tf-btn-outline {
    background: var(--tf-bg-card); border: 1.5px solid var(--tf-border);
    color: var(--tf-text-mid) !important;
}
.tf-btn-outline:hover {
    border-color: var(--tf-primary); color: var(--tf-primary) !important;
    background: var(--tf-bg-warm);
}
.tf-btn-line { background: var(--tf-line); color: #fff !important; }
.tf-btn-large {
    padding: 15px 40px; font-size: 16px; width: 100%;
    border-radius: var(--tf-radius);
}

/* ========================================
   No Results — Illustration Style
   ======================================== */
.tf-no-results {
    text-align: center; padding: 80px 20px;
    max-width: 440px; margin: 0 auto;
    animation: tfFadeContent 0.4s var(--tf-transition);
}
.tf-no-results-icon {
    width: 80px; height: 80px; margin: 0 auto 24px;
    background: var(--tf-bg); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
}
.tf-no-results-title {
    font-size: 18px; font-weight: 700; color: var(--tf-text);
    margin: 0 0 10px;
}
.tf-no-results-text {
    font-size: 14px; color: var(--tf-text-light);
    line-height: 1.7; margin: 0;
}

/* ========================================
   Pagination — Polished
   ======================================== */
.tf-pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 6px; margin-top: 48px; font-family: var(--tf-font);
}
.tf-page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; padding: 0 6px;
    border-radius: 12px; text-decoration: none;
    color: var(--tf-text-mid); border: 1.5px solid var(--tf-border);
    font-family: var(--tf-font-num); font-size: 14px; font-weight: 600;
    cursor: pointer; background: var(--tf-bg-card);
    transition: all 0.2s var(--tf-transition);
}
.tf-page-btn:hover {
    border-color: var(--tf-primary); color: var(--tf-primary);
    background: var(--tf-bg-warm); transform: translateY(-1px);
}
.tf-page-btn.active {
    background: var(--tf-primary-gradient); color: #fff;
    border-color: var(--tf-primary);
    box-shadow: 0 2px 10px rgba(232,84,108,0.25);
    transform: scale(1.05);
}
.tf-page-ellipsis { padding: 0 4px; color: var(--tf-text-light); font-size: 14px; }

/* ========================================
   Form & Misc
   ======================================== */
.tf-apply-form-wrap { max-width: 680px; margin: 0 auto; font-family: var(--tf-font); }
.tf-apply-form-wrap h2 { font-size: 22px; font-weight: 700; margin-bottom: 24px; color: var(--tf-text); }
.tf-form {
    background: var(--tf-bg-card); padding: 36px; border-radius: var(--tf-radius);
    border: 1.5px solid var(--tf-border); box-shadow: var(--tf-shadow);
}
.tf-form-group { margin-bottom: 22px; }
.tf-form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--tf-text); }
.tf-form-group .required { color: #ef4444; }
.tf-form-group input, .tf-form-group select, .tf-form-group textarea {
    width: 100%; padding: 12px 16px; border: 1.5px solid var(--tf-border);
    border-radius: var(--tf-radius-sm); font-family: var(--tf-font); font-size: 15px;
    transition: all 0.2s var(--tf-transition); box-sizing: border-box;
    background: var(--tf-bg-card); color: var(--tf-text);
}
.tf-form-group input:focus, .tf-form-group select:focus, .tf-form-group textarea:focus {
    border-color: var(--tf-primary); outline: none;
    box-shadow: 0 0 0 3px var(--tf-primary-glow);
}
.tf-form-row { display: flex; gap: 16px; }
.tf-form-row-2 > .tf-form-group { flex: 1; }
.tf-checkbox-label { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; }
.tf-checkbox-label input { width: auto !important; }
.tf-form-actions { margin-top: 28px; }
.tf-success-msg {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #a7f3d0; border-radius: var(--tf-radius);
    padding: 36px; text-align: center; margin-bottom: 24px;
}
.tf-success-msg h3 { color: #065f46; margin-top: 0; font-weight: 700; }
.tf-line-cta { background: var(--tf-bg-card); border-radius: var(--tf-radius-sm); padding: 20px; margin-top: 20px; border: 2px solid var(--tf-line); }
.tf-line-cta p { margin: 0 0 12px; font-weight: 600; }

.tf-card { background: var(--tf-bg-card); border-radius: var(--tf-radius); padding: 24px; border: 1.5px solid var(--tf-border); font-family: var(--tf-font); }
.tf-mypage-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.tf-mypage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.tf-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--tf-bg); }
.tf-mobile-footer { display: none; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    /* Hero */
    .tf-hero-wrap {
        border-radius: 0;
        margin: 0 -16px 20px;
        padding: 24px 16px 20px;
        max-width: none;
    }
    .tf-hero-total { font-size: 15px; }
    .tf-hero-total strong { font-size: 32px; }
    .tf-hero-subtitle { font-size: 12px; margin-bottom: 16px; }
    .tf-hero-categories { gap: 8px; margin-bottom: 14px; }
    .tf-hero-cat-btn {
        padding: 16px 8px 14px;
        border-radius: 14px;
    }
    .tf-hero-cat-icon svg { width: 24px; height: 24px; }
    .tf-hero-cat-label { font-size: 14px; }
    .tf-hero-cat-arrow svg { width: 12px; height: 12px; }
    .tf-hero-search-bar {
        padding: 5px 5px 5px 18px;
        border-radius: 50px;
    }
    .tf-hero-keyword-input { font-size: 14px; padding: 8px 10px 8px 0; }
    .tf-hero-keyword-input::placeholder { font-size: 13px; }
    .tf-hero-search-btn { width: 44px; height: 44px; }
    .tf-hero-search-btn svg { width: 20px; height: 20px; }
    
    /* Modal */
    .tf-modal-overlay { padding: 0; align-items: flex-end; }
    .tf-modal {
        border-radius: 24px 24px 0 0; max-height: 92vh;
        animation: tfSlideUpMobile 0.35s var(--tf-spring);
    }
    @keyframes tfSlideUpMobile { from{transform:translateY(100%)} to{transform:translateY(0)} }
    .tf-modal-header { flex-wrap: nowrap; overflow-x: auto; padding: 4px 44px 0 4px; }
    .tf-modal-tab { font-size: 12px; padding: 14px 10px; min-width: 0; }
    .tf-modal-close { top: 8px; right: 8px; width: 32px; height: 32px; font-size: 14px; border-radius: 10px; }
    .tf-modal-body { padding: 20px 16px; }
    .tf-modal-footer { padding: 14px 16px; }
    .tf-modal-search-btn { padding: 12px 28px; font-size: 14px; }
    .tf-filter-grid { grid-template-columns: 1fr; }
    .tf-location-layout { grid-template-columns: 1fr; }
    .tf-location-prefs { max-height: 160px; border-right: none; border-bottom: 1.5px solid var(--tf-border); }
    .tf-location-cities .tf-filter-grid { grid-template-columns: 1fr; }
    .tf-conditions-layout { grid-template-columns: 1fr; }
    .tf-conditions-categories {
        flex-direction: row; overflow-x: auto;
        border-right: none; border-bottom: 1.5px solid var(--tf-border);
    }
    .tf-cond-cat-btn {
        white-space: nowrap; border-bottom: none;
        border-right: 1px solid var(--tf-border-light);
        padding: 12px 16px; font-size: 13px;
    }
    .tf-cond-cat-btn::after { display: none; }
    .tf-modal-bottom-tabs { display: flex; }
    
    /* Grid */
    .tf-job-grid { grid-template-columns: 1fr; gap: 14px; }
    .tf-form-row { flex-direction: column; gap: 0; }
    .tf-form { padding: 24px 20px; }
    
    .tf-mobile-footer {
        display: flex; position: fixed; bottom: 0; left: 0; right: 0;
        z-index: 99999; background: var(--tf-bg-card);
        border-top: 1px solid var(--tf-border);
        box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
        padding: 10px 16px; gap: 10px;
    }
    .tf-m-apply {
        flex: 1; display: flex; align-items: center; justify-content: center;
        padding: 14px; background: var(--tf-primary-gradient); color: #fff !important;
        font-family: var(--tf-font); font-weight: 700; font-size: 15px;
        border-radius: var(--tf-radius-sm); text-decoration: none;
        box-shadow: 0 2px 8px rgba(232,84,108,0.25);
    }
    .tf-m-phone {
        display: flex; align-items: center; justify-content: center;
        width: 52px; height: 52px; border-radius: var(--tf-radius-sm);
        border: 1.5px solid var(--tf-border); color: var(--tf-primary) !important;
        background: var(--tf-bg-card); text-decoration: none;
    }
}

@media (max-width: 480px) {
    .tf-hero-wrap { padding: 20px 12px 16px; }
    .tf-hero-total { font-size: 14px; }
    .tf-hero-total strong { font-size: 28px; }
    .tf-hero-categories { gap: 6px; margin-bottom: 12px; }
    .tf-hero-cat-btn { padding: 14px 6px 12px; border-radius: 12px; }
    .tf-hero-cat-icon svg { width: 22px; height: 22px; }
    .tf-hero-cat-label { font-size: 13px; }
    .tf-hero-cat-arrow { bottom: 5px; right: 6px; }
    .tf-hero-cat-arrow svg { width: 10px; height: 10px; }
    .tf-hero-search-bar { padding: 4px 4px 4px 16px; }
    .tf-hero-keyword-input { font-size: 13px; }
    .tf-hero-search-btn { width: 40px; height: 40px; }
    .tf-hero-search-btn svg { width: 18px; height: 18px; }
    .tf-job-card-inner { padding: 18px 18px 16px; }
    .tf-job-card-footer { padding: 14px 18px; }
    .tf-card-badge-recommend { padding: 4px 10px; font-size: 10px; bottom: 8px; left: 8px; }
}
