/* ==========================================================================
   求人一覧・マイページ 共通スタイル（完全版）
   ========================================================================== */

/* --- レイアウトベース --- */
.job-archive-outer { 
    max-width: 1200px !important; 
    margin: 40px auto !important; 
    padding: 0 15px !important; 
    box-sizing: border-box !important; 
}
.job-archive-flex-layout { 
    display: block !important; 
    width: 100% !important; 
}
.job-archive-main-content { 
    width: 100% !important; 
}

/* 見出しバー */
.job-archive-info-bar { 
    display: flex !important; 
    justify-content: space-between !important; 
    align-items: flex-end !important; 
    margin-bottom: 20px !important; 
    border-bottom: 2px solid #3458ab !important; 
    padding-bottom: 8px !important; 
}
.archive-result-title { 
    font-size: 20px !important; 
    font-weight: bold !important; 
    margin: 0 !important; 
    color: #3458ab !important; 
    border: none !important; 
}
.result-count strong { 
    font-size: 28px !important; 
    color: #c8161d !important; 
    font-family: 'Verdana', sans-serif !important; 
}

/* ==========================================================================
   3カラムグリッド & レスポンシブ設定
   ========================================================================== */
.job-list-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 28px !important; /* カード幅を少し小さく調整 */
    width: 100% !important;
}

@media screen and (max-width: 1024px) {
    .job-list-wrapper { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 20px !important;
    }
}
@media screen and (max-width: 600px) {
    .job-list-wrapper { 
        grid-template-columns: 1fr !important; 
        gap: 16px !important;
    }
}

/* ==========================================================================
   求人カードデザイン（枠線太め & 大きめ角丸）
   ========================================================================== */
.baitoru-no-img-card { 
    background: #fff !important; 
    border: 2px solid #d0d7de !important; /* 枠線を太く設定 */
    border-radius: 18px !important;       /* 角丸を大きく設定 */
    overflow: hidden !important; 
    transition: all 0.2s ease !important; 
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
}
.baitoru-no-img-card:hover { 
    border-color: #3458ab !important; 
    box-shadow: 0 6px 18px rgba(52, 88, 171, 0.12) !important; 
}
.wide-card-link { 
    text-decoration: none !important; 
    color: #333 !important; 
    display: flex !important; 
    flex-direction: column !important;
    height: 100% !important;
}

/* ★ 画像エリア：アスペクト比 3:1 ★ */
.card-thumb-header {
    width: 100%;
    aspect-ratio: 3 / 1;
    background-color: #f4f4f4;
    overflow: hidden;
    position: relative;
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
}
.card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 12px;
    font-weight: bold;
}

/* カードテキスト・要素レイアウト */
.wide-card-body { 
    display: flex !important; 
    padding: 15px !important; 
    flex: 1 !important; 
    flex-direction: column !important; 
}
.wide-card-txt { 
    width: 100% !important; 
}

/* バッジ類 */
.card-top-info { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 4px; 
    margin-bottom: 8px; 
}
.type-badge-inline { 
    display: inline-block !important; 
    background: #3458ab !important; 
    color: #fff !important; 
    font-size: 10px !important; 
    padding: 2px 6px !important; 
    border-radius: 3px !important; 
    font-weight: bold !important; 
    vertical-align: middle !important; 
    margin: 0 !important; 
}
.pickup-badge-inline { 
    display: inline-block !important; 
    background: #fff !important; 
    color: #3458ab !important; 
    box-shadow: inset 0 0 0 1px #3458ab !important; 
    font-size: 10px !important; 
    padding: 2px 6px !important; 
    border-radius: 3px !important; 
    font-weight: bold !important; 
    vertical-align: middle !important; 
    margin: 0 !important; 
}
.new-badge-inline { 
    display: inline-block !important; 
    background: linear-gradient(135deg, #d4af37 0%, #c19b33 25%, #a67c00 50%, #c19b33 75%, #d4af37 100%) !important; 
    color: #fff !important; 
    font-size: 10px !important; 
    padding: 2px 6px !important; 
    border-radius: 3px !important; 
    font-weight: bold !important; 
    vertical-align: middle !important; 
    margin: 0 !important; 
}

/* タイトル (2行制限) */
.wide-card-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.4 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 8px 0 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    max-height: 2.8em !important;
}

/* 職種テキスト (2行制限) */
.occupation-text { 
    margin-top: 8px; 
    padding: 8px; 
    background: #f9f9f9; 
    border: solid 1px #eee; 
    border-radius: 4px; 
}
.occupation-text p { 
    line-height: 1.3; 
    font-size: 12px; 
    color: #333; 
    font-weight: bold; 
    display: -webkit-box !important; 
    -webkit-box-orient: vertical !important; 
    -webkit-line-clamp: 2 !important; 
    overflow: hidden !important; 
    max-height: 2.6em !important; 
    margin: 0 !important; 
}

/* メタ情報（給与・住所・勤務先） */
.wide-card-meta { 
    margin-top: 10px; 
}
.wide-card-meta .meta-row { 
    display: flex !important; 
    align-items: flex-start !important; 
    margin-bottom: 6px !important; 
    font-size: 12px !important; 
    border: none !important; 
    padding: 0 !important; 
    color: #555 !important; 
}
.wage-label { 
    background: #e3ebff !important; 
    color: #3458ab !important; 
    padding: 1px 5px !important; 
    font-size: 11px !important; 
    border-radius: 3px !important; 
    margin-right: 6px !important; 
    font-weight: 600; 
    flex-shrink: 0; 
}
.salary-val { 
    font-weight: 600; 
}
.salary-val strong { 
    color: #3458ab !important; 
    font-size: 15px !important; 
    font-family: 'Verdana', sans-serif !important; 
    font-weight: 800; 
}

/* アイコン作成（住所・勤務先） */
.meta-address::before, .meta-place::before {
    content: ""; 
    display: inline-block; 
    width: 14px; 
    height: 14px; 
    background-color: #999; 
    margin-right: 6px; 
    flex-shrink: 0; 
    margin-top: 2px;
    -webkit-mask-size: contain; 
    mask-size: contain;
}
.meta-address::before {
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/></svg>") no-repeat center;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/></svg>") no-repeat center;
}
.meta-place::before {
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8V9h8v10zm-2-8h-4v2h4v-2zm0 4h-4v2h4v-2z'/></svg>") no-repeat center;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8V9h8v10zm-2-8h-4v2h4v-2zm0 4h-4v2h4v-2z'/></svg>") no-repeat center;
}

/* タグ一覧 */
.card-works-tags-container { 
    display: flex !important; 
    flex-wrap: wrap !important; 
    gap: 4px !important; 
    margin-top: 8px !important; 
    width: 100% !important; 
}
.card-works-tag-item { 
    display: inline-block !important; 
    background-color: #fff !important; 
    color: #333 !important; 
    font-size: 10px !important; 
    font-weight: 600 !important; 
    padding: 3px 6px !important; 
    border-radius: 3px !important; 
    line-height: 1.2 !important; 
    white-space: nowrap !important; 
    border: 1px solid #ddd !important; 
}

/* カードフッター */
.wide-card-footer { 
    background: #fafafa !important; 
    padding: 8px 15px !important; 
    border-top: 1px solid #f0f0f0 !important; 
    display: flex !important; 
    justify-content: space-between !important; 
    align-items: center !important; 
    margin-top: auto !important; 
}
.footer-note { font-size: 11px !important; color: #999 !important; }
.footer-source-note { font-size: 11px !important; color: #777 !important; }

/* お気に入りボタン */
.list-fav-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 20 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #eee !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}
.fav-svg { 
    width: 16px !important; 
    height: 16px !important; 
    fill: none !important; 
    stroke: #3458ab !important; 
    stroke-width: 2px !important; 
}
.list-fav-btn.is-active { 
    background: #fff !important; 
    border-color: #3458ab !important; 
}
.list-fav-btn.is-active .fav-svg { 
    fill: #3458ab !important; 
    stroke: #3458ab !important; 
}

/* ==========================================================================
   ページネーション & フローティングバッジ
   ========================================================================== */
.job-archive-outer .cps-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    padding: 0;
    list-style: none;
}
.job-archive-outer .cps-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s ease;
}
.job-archive-outer .cps-pagination a.page-numbers:hover {
    background: #f8f8f8;
    border-color: #3458ab;
    color: #3458ab;
}
.job-archive-outer .cps-pagination .page-numbers.current {
    background: #3458ab;
    border-color: #3458ab;
    color: #fff;
    cursor: default;
}
.job-archive-outer .cps-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

.fav-floating-wrapper { position: fixed; bottom: 10px; right: 10px; z-index: 400; text-decoration: none; transition: all .3s ease; transform: translateY(100px); opacity: 0; }
.fav-floating-wrapper.is-visible { transform: translateY(0); opacity: 1; }
.fav-floating-inner { background: #fff; border: 2px solid #3458ab; padding: 10px 15px; border-radius: 50px; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.fav-floating-heart { width: 22px; height: 22px; fill: #3458ab; }
.fav-count-num { font-size: 18px; font-weight: 800; color: #3458ab; font-family: Verdana,sans-serif; }