/**
 * 三光ビルサービス社 求人管理プラグイン スタイルシート
 * 既存サイト（page_id=360）のデザイン・配色・レイアウトを完全再現
 */

/* コンテナ */
.sanko-jobs-container {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* 求人カード共通 */
.sanko-job-card {
    background: #ffffff;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    padding: 20px;
    margin: 0 auto 24px auto;
    max-width: 830px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sanko-job-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* パート・アルバイト求人（青アクセント） */
.sanko-job-card-part {
    border-left: 6px solid #005bac;
}

/* 正社員求人（濃紺アクセント） */
.sanko-job-card-seishain {
    border-left: 6px solid #1e3a8a;
}

/* カードヘッダー */
.sanko-job-card-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ebeef5;
}

/* 募集バッジ */
.sanko-job-badge {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.sanko-badge-part {
    background-color: #005bac;
}

.sanko-badge-seishain {
    background-color: #1e3a8a;
}

/* 求人タイトル */
.sanko-job-title {
    font-size: 18px;
    font-weight: bold;
    color: #303133;
    vertical-align: middle;
    line-height: 1.5;
}

/* テーブルスタイル */
.sanko-job-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 15px 0;
    border: none !important;
    background: transparent !important;
}

.sanko-job-table tbody tr {
    background: transparent !important;
    border: none !important;
}

.sanko-job-table th {
    width: 85px;
    padding: 8px 10px 8px 0;
    font-weight: bold;
    color: #555555;
    text-align: left;
    vertical-align: top;
    border: none !important;
    border-bottom: 1px dashed #ebeef5 !important;
    background: transparent !important;
    font-size: 15px;
    line-height: 1.6;
    white-space: nowrap;
}

.sanko-job-table td {
    padding: 8px 0;
    color: #303133;
    text-align: left;
    vertical-align: top;
    border: none !important;
    border-bottom: 1px dashed #ebeef5 !important;
    background: transparent !important;
    font-size: 15px;
    line-height: 1.6;
}

.sanko-job-table tr:last-child th,
.sanko-job-table tr:last-child td {
    border-bottom: none !important;
}

/* ボタンエリア */
.sanko-job-action {
    text-align: right;
    margin-top: 15px;
}

.sanko-job-apply-btn {
    display: inline-block;
    background-color: #f26f21;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: bold;
    padding: 10px 28px;
    border-radius: 4px;
    text-decoration: none !important;
    box-shadow: 0 3px 6px rgba(242, 111, 33, 0.3);
    transition: all 0.2s ease;
    cursor: pointer;
}

.sanko-job-apply-btn:hover {
    background-color: #e05e10;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(242, 111, 33, 0.45);
    transform: translateY(-1px);
}

/* 空状態・ローディング案内 */
.sanko-job-empty-notice {
    background: #fdf6ec;
    border: 1px solid #faecd8;
    color: #e6a23c;
    padding: 24px;
    border-radius: 6px;
    text-align: center;
    max-width: 830px;
    margin: 30px auto;
    font-size: 15px;
    line-height: 1.8;
}

/* =========================================
   応募フォーム（Contact Form 7）側の拡張スタイル
   ========================================= */

/* 選択中求人バナー */
.sanko-selected-job-banner {
    background: #f0f7ff;
    border: 1px solid #b3d8ff;
    border-left: 6px solid #005bac;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 0 auto 24px auto;
    max-width: 830px;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 91, 172, 0.08);
}

.sanko-banner-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.sanko-badge-pill {
    background-color: #005bac;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 4px;
}

.sanko-banner-id {
    font-size: 13px;
    color: #606266;
    font-weight: bold;
}

.sanko-banner-title {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
}

.sanko-banner-meta {
    font-size: 14px;
    color: #4a4a4a;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    line-height: 1.5;
}

.sanko-banner-meta span {
    display: inline-block;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .sanko-job-card {
        padding: 16px;
        margin-bottom: 20px;
    }

    .sanko-job-table th {
        width: 70px;
        font-size: 14px;
        padding: 6px 6px 6px 0;
    }

    .sanko-job-table td {
        font-size: 14px;
        padding: 6px 0;
    }

    .sanko-job-action {
        text-align: center;
    }

    .sanko-job-apply-btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .sanko-banner-meta {
        flex-direction: column;
        gap: 4px;
    }
}
