/* --- レイアウトベース（1カラム仕様） --- */
.job-main-outer { 
    max-width: 1120px; 
    margin: 40px auto; 
    padding: 0 15px; 
}
.job-flex-container { 
    display: block; 
    width: 100%;
}
.job-main-column { 
    width: 100%; 
    min-width: 0; 
}
.job-sidebar-column { 
    display: none !important; 
}

.report-btn-container { margin-top: 20px; }

/* --- メインカード & デザイン --- */
.update-text, .source-text { margin-bottom: 8px; }
.job-article-card { 
    padding: 0 !important; 
    background: transparent !important; 
    border: 0 !important; 
}
.job-main-title { 
    font-size: 24px; 
    font-weight: 600; 
    line-height: 1.4; 
    color: #333; 
    border: none !important; 
    margin-bottom: 16px; 
}

.job-labels { margin-bottom: 15px; }
.new-badge-inline { background: linear-gradient(135deg, #d4af37 0%, #c19b33 25%, #a67c00 50%, #c19b33 75%, #d4af37 100%); color: #fff; padding: 6px 10px; font-size: 12px; font-weight: bold; border-radius: 3px; }
.pickup-badge-inline { background: #fff; color: #3458ab; padding: 6px 10px; font-size: 12px; font-weight: 600; border-radius: 3px; box-shadow: inset 0 0 0 1px #3458ab !important; }
.lbl-type { background: #3458ab; color: #fff; padding: 6px 10px; font-size: 12px; font-weight: 600; border-radius: 3px; }

.lbl-occ { padding: 10px; background: #f9f9f9; color: #333; font-size: 12px; margin-top: 10px; margin-bottom: 16px; border: solid 1px #ddd; border-radius: 4px; font-weight: bold; }

/* --- job-meta-header 2カラムレイアウト --- */
.job-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 30px;
}
.job-meta-left {
    flex: 1;
    min-width: 0;
}
.job-meta-right {
    width: 400px; 
    flex-shrink: 0;
}

/* --- カルーセルスライダーコアスタイル --- */
.job-main-slider-container {
    width: 100%;
}
.slider-view-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #eee;
    background: #000;
}
.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}
.slider-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}
.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* ★ 左右ナビゲーション矢印（デザイン刷新） */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    font-size: 0; /* 元のテキスト「〈 〉」を隠す */
    color: transparent;
	touch-action: manipulation !important; /* ダブルタップズームの禁止 */
    -webkit-user-select: none !important; /* iOS Safariでのテキスト選択禁止 */
    user-select: none !important;         /* 一般的なブラウザでのテキスト選択禁止 */
}
/* 矢印の共通擬似要素（V字の線を生成） */
.slider-arrow::after {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2.5px solid #444;
    border-right: 2.5px solid #444;
    transition: border-color 0.2s ease;
}
.slider-arrow:hover {
    background: #3458ab; /* ホバー時はブランドカラーに */
    box-shadow: 0 4px 12px rgba(52, 88, 171, 0.3);
}
.slider-arrow:hover::after {
    border-color: #fff; /* ホバー時は矢印を白に */
}

/* 左矢印の向き変更 */
.arrow-prev { left: 12px; }
.arrow-prev::after {
    transform: rotate(-135deg);
    margin-left: 3px;
}

/* 右矢印の向き変更 */
.arrow-next { right: 12px; }
.arrow-next::after {
    transform: rotate(45deg);
    margin-right: 3px;
}

/* 下部サムネイルデザイン */
.slider-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 8px;
    margin-top: 10px;
}
.thumb-item {
    aspect-ratio: 1 / 1; 
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.6;
    background: #f0f0f0;
}
.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumb-item:hover {
    opacity: 0.9;
}
.thumb-item.is-active {
    border-color: #3458ab; 
    opacity: 1;
}

/* 全体の横揺れ防止 */
html, body {
    overflow-x: hidden;
}

/* --- テーブルデザイン --- */
.job-table-section { margin-top: 40px !important; margin-bottom: 20px !important; }
.job-custom-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #ddd !important;
    table-layout: auto !important;
    border-radius: 20px !important; 
    overflow: hidden !important;
}
.job-custom-table th {
    background: #ebf1ff !important; 
    padding: 20px !important;
    border-bottom: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
    font-size: 16px !important; 
    color: #3458ab !important;
    font-weight: bold !important;
    width: 160px;
    vertical-align: top !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: 18px; color: #3458ab; font-weight: 600; display: block; margin-bottom: 10px; }
.sal-num { font-size: 28px; font-weight: 800; }
.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_child { margin-left: 20px; }
.sal-list li { margin-bottom: 5px; position: relative; }
.sec-ttl { font-size: 20px; font-weight: bold; margin-bottom: 15px; border-left: 5px solid #3458ab; padding-left: 15px; color: #3458ab; }
.time-item span { color: #0076fe; font-weight: bold; }

.loc-lbl-sub { font-size: 12px; color: #999; font-weight: 600; 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;
}
.loc-lbl-sub2 { font-size: 12px; color: #999; font-weight: 600; margin-top: 10px; display: flex; align-items: center; }

/* アイコン類共通設定 */
.meta-place, .meta-address { display: flex !important; align-items: flex-start !important; margin-top: 4px !important; color: #666 !important; font-size: 16px !important; }
.meta-place::before {
    content: ""; display: inline-block; width: 18px; height: 18px; background-color: #3458ab; margin-right: 8px; flex-shrink: 0; padding-top: 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 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;
}
.meta-address::before {
    content: ""; display: inline-block; width: 18px; height: 18px; background-color: #3458ab; margin-right: 8px; flex-shrink: 0; margin-top: 3px;
    -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-row.meta-salary { display: flex !important; align-items: center !important; margin-top: 4px !important; color: #666 !important; font-size: 16px !important; }
.meta-salary::before {
    content: "￥"; display: inline-flex !important; align-items: center !important; justify-content: center !important; width: 18px !important; height: 18px !important; margin-right: 8px !important; flex-shrink: 0 !important; background-color: #3458ab !important; color: #fff !important; border-radius: 50% !important; font-size: 11px !important; font-weight: bold !important; line-height: 1 !important; text-align: center !important;
}

/* --- ボタン --- */
.btn-main { display: inline-block; width: 100%; max-width: 200px; background: #3458ab; color: #fff !important; text-align: center; padding: 8px 16px; border-radius: 10px; font-weight: bold; font-size: 18px; text-decoration: none; }
.place-text a { text-decoration: underline; color: #004fcb; }

/* 問題報告ボタン */
.job-report-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; background-color: #f3f4f6; color: #4b5563; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; transition: all 0.2s ease; }
.job-report-btn:hover { background-color: #e5e7eb; color: #1f2937; border-color: #9ca3af; text-decoration: none; }
.report-icon { flex-shrink: 0; color: #9ca3af; }
.job-report-btn:hover .report-icon { color: #ef4444; }

.age-chip { display: inline-block; background-color: #e9ecef; color: #495057; padding: 2px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; margin-top: 5px; }

/* 応募ボタン・お気に入りエリア */
.job-apply-btm { display: flex !important; align-items: center; gap: 12px; margin: 20px 0; }
.job-single-fav-btn { position: relative !important; top: auto !important; right: auto !important; flex-shrink: 0; width: 80px !important; height: auto !important; align-self: stretch !important; border: 1.5px solid #ccc !important; background: #fff; border-radius: 10px !important; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.job-single-fav-btn .fav-svg { width: 24px !important; height: 24px !important; stroke: #3458ab !important; stroke-width: 2px !important; fill: none !important; transition: all 0.2s ease; }
.job-single-fav-btn.is-active .fav-svg { fill: #3458ab !important; stroke: #3458ab !important; }
.job-single-fav-btn.is-active { border-color: #3458ab !important; }

/* ワークスタグ */
.works-tags-container { width: 100%; }
.works-tags-inner { display: flex; flex-wrap: wrap; gap: 8px; }
.works-tag-item { display: inline-block; padding: 6px 12px; background-color: #f0f0f0; color: #333; border-radius: 4px; font-size: 14px; line-height: 1.4; white-space: nowrap; font-weight: bold; }
.works-tags-toggle-btn { display: inline-block; padding: 6px 12px; background-color: transparent; color: #333; border: none; border-radius: 4px; font-size: 14px; line-height: 1.4; cursor: pointer; white-space: nowrap; font-weight: bold; text-decoration: underline; }

/* --- 【レスポンシブ】タブレット・スマートフォン横幅（1024px以下） --- */
@media screen and (max-width: 1024px) {
    .job-main-outer { padding: 0 15px; }
    
    /* ヘッダーの2カラムを縦積みに変更 */
    .job-meta-header {
        flex-direction: column-reverse; 
        gap: 20px;
    }
    .job-meta-right {
        width: 100%;
    }

    /* テーブルのレスポンシブ化 */
    .job-custom-table, .job-custom-table tbody, .job-custom-table tr { display: block !important; width: 100% !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 { padding: 12px 20px !important; }
    .job-custom-table td.td-white { border-bottom: 1px solid #ddd !important; padding: 20px !important; }
    
    .works-tags-container { margin-top: 20px; }
    .works-tags-inner { gap: 6px; }
    .works-tag-item, .works-tags-toggle-btn { padding: 4px 8px; font-size: 13px; }
}

/* --- 【レスポンシブ】スマートフォン縦長（767px以下）下部固定対応 --- */
@media screen and (max-width: 767px) {
    .job-main-title { font-size: 21px; }
    .update-text, .source-text { font-size: 14px; }
    .sal-main { font-size: 16px; }
    .sal-num { font-size: 21px; }

    /* 下部固定ボタンエリア設定 */
    .job-apply-btm {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background: #fff !important;
        padding: 12px 15px !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
        z-index: 200 !important;
        box-sizing: border-box !important;
        margin: 0;
    }
    .job-apply-btm .btn-main {
        display: block !important;
        width: 100% !important;
        max-width: 100%;
        margin: 0 auto !important;
        text-align: center !important;
        padding: 12px 0 !important;
        border-radius: 5px !important;
        font-size: 18px;
        flex: 1;
    }
    .job-single-fav-btn {
        width: 70px !important;
    }
    body {
        padding-bottom: calc(67px + env(safe-area-inset-bottom)) !important;
    }
}

@media screen and (max-width: 480px) {
    .job-report-btn { display: flex; box-sizing: border-box; width: 170px; }
}

/* 位置調整用の指定クラス */
.custom-ham-trigger-btn {
    bottom: 90px!important; /* お好みの高さ（px, rem, vh など） */
}
