/* --- レイアウトベース --- */
.job-main-outer { max-width: 1140px; margin: 40px auto; padding: 0 15px; }
.job-flex-container { display: flex; flex-wrap: wrap; gap: 30px; }
.job-main-column { flex: 1; min-width: 0; }
.job-sidebar-column { width: 340px; }

@media screen and (min-width: 1025px) {
    .job-sidebar-sticky { position: sticky; top: 20px; }
}

/* --- メインカード & デザイン --- */
.job-article-card { background: #fff; border: 1px solid #eee; padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.job-main-title { font-size: 24px; font-weight: 800; margin-bottom: 35px; line-height: 1.4; color: #333; border:none !important; }

.job-labels { margin-bottom: 15px; }
.lbl-type { background: #3458ab; color: #fff; padding: 6px 10px; font-size: 12px; font-weight: bold; border-radius: 3px; margin-right: 8px; }
.lbl-occ { color: #3458ab; font-weight: bold; font-size: 14px; }

/* --- テーブルデザイン（修正：上線削除・枠線濃いめ） --- */
.job-custom-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    /* 上の黒線を削除し、全体の枠線を #ddd (少し濃いグレー) に変更 */
    border: 1px solid #ddd !important; 
    border-top: 1px solid #ddd !important; /* 黒線を普通の枠線に置き換え */
    table-layout: fixed !important;
    margin-bottom: 40px !important;
    border-radius: 12px !important; 
    overflow: hidden !important;
}

.job-custom-table th {
    width: 180px !important; 
    background: #f8f8f8 !important; 
    padding: 20px !important;
    /* 内側の線も #ddd に統一 */
    border-bottom: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
    font-size: 14px !important; 
    color: #555 !important;
    text-align: left !important; 
    vertical-align: top !important; 
    font-weight: bold !important;
}

.job-custom-table td.td-white {
    background: #fff !important; 
    padding: 20px 25px !important; 
    border-bottom: 1px solid #ddd !important;
    font-size: 15px !important; 
    line-height: 1.9 !important; 
    color: #333 !important; 
    word-break: break-word !important;
}

/* 最後の行の下線を消して角丸の底面にフィットさせる */
.job-custom-table tr:last-child th,
.job-custom-table tr:last-child td {
    border-bottom: none !important;
}

/* --- 内部装飾 --- */
.sal-main { font-size: 24px; color: #d35400; font-weight: 800; display: block; margin-bottom: 10px; }
.sal-num { font-size: 28px; font-family: sans-serif; }

.sal-list { 
    margin-top: 20px !important; 
    background: #f9f9f9; 
    padding: 15px; 
    font-size: 13px; 
    color: #666; 
    list-style: none !important; 
    border-radius: 4px; 
    border: 1px solid #f0f0f0; 
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}

.sal-list li { margin-bottom: 5px; position: relative; padding-left: 15px; }
.sal-list li::before { content: "■"; color: #ddd; position: absolute; left: 0; font-size: 10px; }

.sec-ttl { font-size: 20px; font-weight: bold; margin-bottom: 15px; border-left: 5px solid #333; padding-left: 15px; }
.time-item span { color: #0076fe; font-weight: bold; }

.loc-lbl-sub { 
    font-size: 12px; 
    color: #999; 
    font-weight: bold; 
    margin-top: 10px; 
    display: flex; 
    align-items: center; 
}
.loc-lbl-sub::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background-color: #3458ab;
    margin-right: 6px;
    -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;
}

/* --- サイドバー --- */
.side-widget { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 25px; margin-bottom: 25px; }
.side-ttl { font-size: 17px; font-weight: bold; border-bottom: 2px solid #f0f0f0; padding-bottom: 12px; margin-bottom: 20px; }

.side-img-list { display: flex; flex-direction: column; gap: 15px; }
.side-img-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; border: 1px solid #f0f0f0; }

.side-info-row { display: flex; padding: 12px 0; border-bottom: 1px solid #f5f5f5; align-items: flex-start; }
.side-info-lbl { width: 100px; flex-shrink: 0; font-size: 13px; color: #999; font-weight: bold; }
.side-info-val { flex: 1; font-size: 13px; font-weight: bold; color: #333; word-break: break-all; padding-left: 10px; line-height: 1.5; }

/* --- ボタン --- */
.btn-main { display: block; width: 100%; max-width: 400px; margin: 0 auto; background: #3458ab; color: #fff !important; text-align: center; padding: 20px; border-radius: 50px; font-weight: bold; font-size: 22px; text-decoration: none; box-shadow: 0 4px 15px rgba(52, 88, 171, 0.25); }
.btn-side { display: block; background: #3458ab; color: #fff !important; text-align: center; padding: 16px; border-radius: 8px; font-weight: bold; text-decoration: none; margin-top: 25px; }

.side-company-link { margin-top: 20px; padding-top: 15px; border-top: 1px dotted #ddd; }
.btn-company-more { display: block; background: #fff; color: #3458ab; border: 1px solid #3458ab; text-align: center; padding: 10px; border-radius: 4px; text-decoration: none; font-size: 14px; font-weight: bold; transition: 0.3s; }
.btn-company-more:hover { background: #3458ab; color: #fff; box-shadow: 0 4px 15px rgba(52, 88, 171, 0.25); }

/* --- 【レスポンシブ】1024px以下 --- */
@media screen and (max-width: 1024px) {
    .job-flex-container { flex-direction: column; }
    .job-sidebar-column { width: 100%; }
    .job-article-card { padding: 25px; }
    
    .job-custom-table, .job-custom-table tbody, .job-custom-table tr { display: block !important; width: 100% !important; border: none !important; }
    .job-custom-table th, .job-custom-table td.td-white { display: block !important; width: 100% !important; box-sizing: border-box !important; border-right: none !important; }
    
    .job-custom-table th { background: #f2f2f2 !important; padding: 12px 20px !important; border-bottom: none !important; font-size: 13px !important; }
    .job-custom-table td.td-white { border-bottom: 1px solid #ddd !important; padding: 20px !important; }
    
    .side-apply { display: none !important; }
}