/* --- ベースのレイアウト（提供いただいたものを完全維持） --- */
.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: flex !important; flex-direction: row !important; gap: 30px !important; align-items: flex-start !important; }

.job-archive-main-content { flex: 1 !important; min-width: 0 !important; width: 100%; }
.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; }


/* 親要素をストレッチさせる */
.job-archive-sidebar-right { 
    width: 340px !important; 
    flex-shrink: 0 !important; 
    align-self: stretch !important; /* これが重要 */
}

/* カードを粘着させる */
.job-search-card { 
    background: #fff !important; 
    border: 1px solid #ddd !important; 
    border-radius: 20px !important; 
    padding: 20px !important; 
    position: -webkit-sticky !important;
    position: sticky !important; 
    top: 20px !important; /* 追従開始位置 */
    box-shadow: 0 3px 15px rgba(0,0,0,0.05) !important; 
    box-sizing: border-box !important; 
    z-index: 10;
}
.search-title { font-size: 16px !important; color: #3458ab; font-weight: bold !important; margin-bottom: 15px !important; border-bottom: 1px solid #eee !important; padding-bottom: 8px !important; }

.filter-section { padding-bottom: 10px!important; margin-bottom: 10px !important; width: 100% !important; border-bottom: 1px solid #eee; }

@media (min-width: 1024px) { .filter-section { border-bottom: 1px solid #eee; } }

.filter-label { font-size: 13px !important; font-weight: bold !important; color: #444 !important; margin-bottom: 8px !important; display: block !important; }
.input-text { width: 100% !important; padding: 10px !important; border: 1px solid #ccc !important; border-radius: 4px !important; font-size: 16px !important; box-sizing: border-box !important; height: 42px; }

.price-input-flex { display: flex !important; align-items: center !important; gap: 8px !important; }
.price-input-flex .input-text { flex: 1 !important; }
.unit { font-size: 14px !important; color: #666 !important; white-space: nowrap !important; }

.chip-container { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
.chip-label { cursor: pointer !important; margin: 0 !important; }
.chip-label input { display: none !important; }
.chip-text { display: inline-block !important; padding: 7px 12px !important; background: #fff !important; border: 1px solid #3458ab !important; border-radius: 4px !important; font-size: 13px !important; color: #3458ab !important; transition: 0.2s !important; text-align: center !important; }
.chip-label input:checked + .chip-text { background: #3458ab !important; color: #fff !important; font-weight: bold !important; }

.execute-btn { width: 100% !important; background: #3458ab !important; color: #fff !important; border: none !important; padding: 14px !important; border-radius: 4px !important; font-weight: bold !important; cursor: pointer !important; font-size: 15px !important; margin-top: 10px !important; margin-bottom: 15px !important ; }
.reset-link { display: block !important; text-align: center !important; font-size: 14px !important; color: #666 !important; text-decoration: underline !important; }

/* --- 変更箇所：アイコン化とスリム化 --- */
.baitoru-no-img-card { background: #fff !important; border: 1px solid #e0e0e0 !important; border-radius: 20px !important; margin-bottom: 15px !important; overflow: hidden !important; transition: 0.2s ease !important; }
.baitoru-no-img-card:hover { border-color: #3458ab !important; box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important; }
.wide-card-link { text-decoration: none !important; color: #333 !important; display: block !important; }

.wide-card-body { display: flex !important; padding: 20px !important; align-items: center !important; }
.wide-card-txt { flex: 1 !important; min-width: 0 !important; }

/* 勤務地アイコン（ピンマークをCSSで作成） */
.meta-address { display: flex !important; align-items: center !important; }
.meta-address::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #999;
    margin-right: 8px;
    flex-shrink: 0;
    -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;
}

.type-badge-inline { display: inline-block !important; background: #3458ab !important; color: #fff !important; font-size: 10px !important; padding: 3px 8px !important; border-radius: 3px !important; margin-bottom: 16px !important; font-weight: bold !important; vertical-align: middle !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: 3px 8px !important; border-radius: 3px !important; margin-bottom: 16px !important; font-weight: bold !important; vertical-align: middle !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: 3px 8px !important; border-radius: 3px !important; margin-bottom: 16px !important; font-weight: bold !important; vertical-align: middle !important; }


/* タイトルを2行（約30〜40文字前後）で省略する設定 */
.wide-card-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.4 !important;
    border: none !important;
    padding: 0 !important;

    /* --- ここから省略処理を追加 --- */
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important; /* 2行まで表示し、それ以降を「...」にする */
    overflow: hidden !important;
    max-height: 2.8em !important; /* line-height(1.4) × 2行分 */
}

/* レスポンシブ時の調整（スマホでタイトルを少し小さくする場合） */
@media screen and (max-width: 1024px) {
    .wide-card-title {
        font-size: 17px !important;
        -webkit-line-clamp: 3 !important; /* スマホでも2行を維持 */
        max-height: 4.2em !important;
    }
}

/* 勤務地・給与の見出しタグ(dt)と矢印がなくなった前提の設定 */
.wide-card-meta .meta-row { display: flex !important; align-items: center !important; margin-bottom: 6px !important; font-size: 14px !important; border: none !important; padding: 0 !important; }
.wage-label { background: #e3ebff !important; color: #3458ab !important; padding: 2px 6px !important; font-size: 12px !important; border-radius: 3px !important; margin-right: 8px !important; font-weight: 600; }
.salary-val { font-weight: 600; }
.salary-val strong { color: #3458ab !important; font-size: 18px !important; font-family: 'Verdana', sans-serif !important;  font-weight: 800;  }

.wide-card-footer { background: #fafafa !important; padding: 10px 20px !important; border-top: 1px solid #f0f0f0 !important; display: flex !important; justify-content: space-between !important; align-items: center !important; }
.footer-note { font-size: 11px !important; color: #999 !important; }
.footer-btn { font-weight: bold !important; color: #3458ab !important; font-size: 13px !important; }

/* ページネーションとレスポンシブは元のまま維持 */
.archive-pagination { margin-top: 30px !important; text-align: center !important; }
.archive-pagination .page-numbers { display: inline-block !important; padding: 8px 14px !important; margin: 0 3px !important; background: #fff !important; border: 1px solid #ddd !important; color: #3458ab !important; text-decoration: none !important; border-radius: 4px !important; }
.archive-pagination .current { background: #3458ab !important; color: #fff !important; border-color: #3458ab !important; }

@media screen and (max-width: 1024px) {
    .job-archive-flex-layout { flex-direction: column !important; }
    .job-archive-sidebar-right { width: 100% !important; }
    .job-search-card { position: static !important; width: 100% !important; margin-bottom: 60px; }
    .wide-card-title { font-size: 17px !important; }
    .wide-card-body { padding: 15px !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;
}

/* 「前へ」「次へ」のテキストを少し調整 */
.job-archive-outer .cps-pagination .prev.page-numbers,
.job-archive-outer .cps-pagination .next.page-numbers {
    padding: 0 15px;
    background: #f0f2f5;
}

/* 勤務先のスタイル */
.meta-place {
    display: flex !important;
    align-items: center !important;
    margin-top: 4px !important;
    color: #666 !important;
    font-size: 13px !important;
}

/* 勤務先アイコン（ビルマークをCSSで作成 ※FontAwesomeを使わない場合） */
.meta-place::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #999;
    margin-right: 8px;
    flex-shrink: 0;
    -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;
}
@media screen and (min-width: 1025px) {
.meta-place::before {
	padding-top: 4px;
}
}


.occupation-text { margin-top: 16px; padding: 10px; background: #f9f9f9; border: solid 1px #ddd; border-radius: 4px; }

.occupation-text p { line-height: 1.2; font-size: 13px; 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.4em !important; margin: 0 !important; }


/* スマホ対応：ボタンが多すぎる場合に折り返す */
@media screen and (max-width: 480px) {
    .job-archive-outer .cps-pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    .job-archive-outer .cps-pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
    }
}


.input-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-size: 16px;
    cursor: pointer;
    appearance: none; /* デフォルトの矢印を消してカスタマイズする場合 */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.filter-section {
    margin-bottom: 15px;
}

.filter-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}

/* --- 初期値（未選択）の時だけ色を薄くする魔法 --- */
.input-select:invalid {
    color: #757575; /* プレースホルダー色 */
}

/* 選択肢自体の色は濃く保つ */
.input-select option {
    color: #333;
}

@media screen and (max-width: 600px) {
	.salary-val strong { font-size: 14px !important; }
	.wide-card-meta .meta-row { font-size: 12px !important; }
	.wage-label { padding: 1px 4px !important; font-size: 12px !important; }
	.occupation-text p { font-size: 12px; }
}	









/* 勤務地アイコンの修正 */
.wide-card-meta .meta-row.meta-address { 
    display: flex !important; 
    align-items: flex-start !important; /* ★中央ではなく上揃えにする */
}
.meta-address::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #999;
    margin-right: 8px;
    flex-shrink: 0;
    -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;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* 勤務先アイコンの修正 */
.wide-card-meta .meta-row.meta-place {
    display: flex !important;
    align-items: flex-start !important; /* ★上揃えにする */
    margin-top: 4px !important;
    color: #666 !important;
}
.meta-place::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #999;
    margin-right: 8px;
    flex-shrink: 0;
    -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;
    -webkit-mask-size: contain;
    mask-size: contain;
}



/* 常設部分のスタイル */
.header-search-container { margin-bottom: 20px; position: sticky; top: 0px; z-index: 100; background: #f7faff; padding: 10px 15px; z-index: 999; }
.simple-search-row { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.top-keyword-input-wrap { display: flex; width: 100%; max-width: 500px; gap: 5px; }
.top-execute-btn{ background: #3458ab; color: #fff; cursor: pointer; font-weight: bold; transition: opacity 0.2s; min-width: 60px; border: none !important; border-radius: 4px !important; font-size: 16px !important; }
.hp-submit-btn:hover { opacity: 0.8; }


.modal-open-btn { 
display: block !important;
    text-align: center !important;
    font-size: 14px !important;
    color: #666 !important;
    text-decoration: none !important;
	border: none;
    background: transparent;
    margin: 0;
    padding: 0;
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "メイリオ", "Meiryo", sans-serif, "Noto Sans Emoji", "Noto Sans", "Noto Sans CJK JP";
    font-weight: 400;
}

/* --- モーダル本体（フェードアニメーション追加） --- */
.search-modal {
    display: none; /* JSで一瞬 display: block に切り替わる想定 */
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* JSで .is-open がついた時の表示 */
.search-modal.is-open {
    display: block;
    opacity: 1;
}

.search-modal-overlay {
    position: absolute; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
}

/* --- モーダルコンテンツ（ふわっと浮き上がるアニメ追加） --- */
.search-modal-content {
    position: relative; top: 50%; left: 50%;
    /* 初期状態：少し下げて小さくしておく */
    transform: translate(-50%, -45%) scale(0.95);
    width: 90%; max-width: 450px;
    background: #fff; border-radius: 8px;
    padding: 20px; max-height: 90vh; overflow-y: auto;
    /* アニメーションの速度設定 */
    transition: transform 0.3s ease-out;
}

/* オープン時の定位置 */
.search-modal.is-open .search-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

/* --- ヘッダー検索バーの 8:2 比率調整 --- */
/* キーワード検索部分の親要素（.keyword-input-wrap想定）に適用 */
.keyword-input-wrap {
    display: flex;
    width: 100%;
    max-width: 600px; /* 任意 */
    gap: 0; 
}

/* 入力ボックスを 8 に */
.keyword-input-wrap input[type="text"] {
    flex: 8;
    width: 100%;
    /* 既存のスタイルを壊さないよう最低限の調整 */
}

/* 検索ボタンを 2 に */
.keyword-input-wrap .execute-btn {
    flex: 2;
    white-space: nowrap;
    /* 既存のスタイルを保持 */
}

/* --- その他既存スタイル --- */
.modal-header { display: flex; justify-content: space-between; margin-bottom: 15px; }
.modal-close { font-size: 24px; border: none; background: none; cursor: pointer; color: #3458ab; }


#job_informations {
    /* 飛ばしたい位置から 80px 分、上に余裕を持たせる */
    scroll-margin-top: 80px; 
}

@media screen and (min-width: 1025px) {
.header-search-container { display: none; }
}

@media screen and (max-width: 1024px) {
.job-archive-sidebar-right { display: none; }
}

.js--hamburger-hidden #commonHeader { z-index: 9999; }


:root {
    --h-size: 48px; /* 検索バーとボタンの共通の高さ。ここを変えるだけで全部変わります */
}

/* 全体の並び */
.top-keyword-input-wrap {
    display: flex;
    gap: 12px;         /* バーとボタンの間の隙間 */
    align-items: center;
    width: 100%;
    max-width: 800px;  /* サイトに合わせて調整 */
}

/* 入力エリアの包み */
.input-with-clear {
	background: #fff;
    position: relative;
    flex: 1;
}

.input-text:focus {
    border-color: #007bff; /* フォーカス時に色を変える */
}

/* バツボタン（入力欄の右側に浮かせる） */
.input-clear-icon {
    position: absolute;
    right: 12px;
    top: 45%;
    transform: translateY(-50%);
    color: #333;
    display: none;     /* JSで制御 */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    z-index: 10;
}

/* 検索ボタン */
.top-execute-btn {
    height: 42px; /* バーと同じ高さ */
}

.top-execute-btn:hover {
    opacity: 0.8;
}

/* 標準のバツを消す */
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.sub-button-group{
	display: flex;
    gap: 30px;    
	justify-content: flex-start;
}

/* 検索バーの行 */
.simple-search-row {
    margin-bottom: 10px;
}

/* ボタンの行 */
.search-ops-row {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 5px;
}

.sub-button-group {
    display: flex;
    align-items: center;
    gap: 30px;
	justify-content: space-between;
    width: 100%;
}

/* アコーディオン開閉ボタン */
.accordion-trigger {
    background: none;
    border: none;
    color: #3458ab;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.accordion-trigger .icon {
    transition: transform 0.3s;
    font-size: 14px;
}

/* 開いている時は矢印を反転 */
.accordion-trigger.is-active .icon {
    transform: rotate(180deg);
}

/* リセットリンクボタン */
.reset-link-btn {
    font-size: 13px;
    color: #666;
    text-decoration: underline;
}

/* アコーディオン本体 */
.search-accordion {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease-out;
    background: #fcfcfc;
    border-radius: 8px;
}

.search-accordion.is-open {
    border: 1px solid #eee;
    margin-top: 10px;
}

.accordion-inner {
    padding: 20px;
	background: #fff;
}

/* フォーム内をグリッドで綺麗に並べる（PC時） */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}


/* --- ブックマークボタンのスタイル --- */
.list-fav-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 20; /* リンクより上に配置 */
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #eee;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.fav-svg {
    width: 20px;
    height: 20px;
    fill: none; /* 初期はアウトライン */
    stroke: #3458ab;
    stroke-width: 2px;
    transition: all 0.2s ease;
}

/* 登録済み（is-active）のスタイル */
.list-fav-btn.is-active {
    background: #fff;
    border-color: #3458ab;
}

.list-fav-btn.is-active .fav-svg {
    fill: #3458ab; /* 塗りつぶし */
    stroke: #3458ab;
}

/* ホバー時の挙動 */
@media (hover: hover) {
    .list-fav-btn:hover {
        transform: scale(1.1);
        background: #fff;
    }
}

/* スマホでの位置微調整（カードのpaddingが狭くなる場合） */
@media screen and (max-width: 1024px) {
    .list-fav-btn {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }
    .fav-svg {
        width: 18px;
        height: 18px;
    }
}


.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}
.fav-floating-wrapper:hover{transform:scale(1.05)}


/* 見出し・セクション構造スタイル */
.filter-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.filter-label-inline {
    font-weight: bold;
    margin: 0;
}
.modal-trigger-open-btn {
    background: none;
    border: 1px solid #ccc;
    color: #666;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.modal-trigger-open-btn:hover, .modal-trigger-open-btn.has-value {
    border-color: #3458ab;
    color: #3458ab;
    background-color: #f4f7fc;
}

/* ボタン風選択子共通デザイン */
.custom-select-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 5px 2px;
}
.custom-ui-btn {
    display: inline-block;
    padding: 7px 14px;
    font-size: 13px;
    background-color: #f8f9fa;
    color: #444;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.custom-ui-btn:hover { background-color: #f0f0f0; }
.ui-hidden-input { display: none !important; }
.ui-hidden-input:checked + .custom-ui-btn {
    background-color: #3458ab;
    color: #fff;
    border-color: #3458ab;
}

/* 各個別の専用モーダルベースデザイン */
.search-individual-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.search-individual-modal-overlay.is-active { opacity: 1; pointer-events: auto; }
.search-individual-modal-window {
    background: #fff; width: 92%; max-width: 900px; max-height: 85vh; /* グループ化に伴い、幅と高さを少し拡張 */
    border-radius: 8px; overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 4px 25px rgba(0,0,0,0.25); transform: translateY(-15px); transition: transform 0.2s ease;
}
.search-individual-modal-overlay.is-active .search-individual-modal-window { transform: translateY(0); }
.individual-modal-header { padding: 15px 20px; background: #f8f9fa; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.individual-modal-title { font-weight: bold; margin: 0; font-size: 15px; color:#333; }
.individual-modal-close-trigger { background: none; border: none; font-size: 24px; cursor: pointer; color: #aaa; line-height: 1; }
.individual-modal-body { padding: 20px; overflow-y: auto; }
.individual-modal-footer { padding: 12px 20px; background: #f8f9fa; border-top: 1px solid #eee; display: flex; justify-content: flex-end; }
.individual-modal-save-btn { background: #3458ab; color: #fff; border: none; padding: 9px 25px; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 13px; }

/* 選択された条件のバッジ表示エリア */
.selected-conditions-display { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; min-height: 20px; }
.condition-badge { background: #eef2fa; color: #3458ab; font-size: 11px; padding: 2px 7px; border-radius: 4px; border: 1px solid #d0daf0; font-weight: 500; }
/* 指定なし（空）用の灰色バッジスタイル */
.condition-badge.is-empty { background: #f5f5f5; color: #777777; border-color: #dddddd; font-weight: normal; }

/* こだわり条件モーダル内の検索ボックス */
.modal-tag-search-box-wrap {
    margin-bottom: 14px;
    position: relative;
}
.modal-tag-search-box-wrap input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}
.modal-tag-search-box-wrap input[type="text"]:focus {
    border-color: #3458ab; /* フォーカス時のブランドカラー */
}

/* ==========================================================================
   こだわり・条件 モーダル内グループ・レスポンシブ等幅グリッド（追加・上書き）
   ========================================================================== */
.modal-tag-groups-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tag-group-section {
    display: flex;
    flex-direction: column;
}

/* グリッドレイアウト（スマホ環境：デフォルト2列） */
.tag-grid-layout {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px !important;
    width: 100%;
    box-sizing: border-box;
}

/* 親要素の幅を100%にして綺麗に均等割する */
.tag-grid-layout .tag-item-wrapper {
    width: 100% !important;
    margin: 0 !important;
}

/* グリッド内で幅を統一し、縦中央揃えでレイアウトを維持する */
.tag-grid-layout .custom-ui-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 40px; /* ボタン全体の高さを揃えて押しやすくする */
    box-sizing: border-box;
    text-align: center;
    padding: 8px 4px !important;
    font-size: 12px;
    line-height: 1.3;
}

/* タブレット環境：768px以上で4列に切り替え */
@media screen and (min-width: 768px) {
    .tag-grid-layout {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px !important;
    }
    .tag-grid-layout .custom-ui-btn {
        font-size: 13px;
        padding: 10px 6px !important;
    }
}

/* PC環境：1025px以上で5列に切り替え */
@media screen and (min-width: 1025px) {
    .tag-grid-layout {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px !important;
    }
    .tag-grid-layout .custom-ui-btn {
        font-size: 13px;
        padding: 10px 6px !important;
    }
}


/* ==========================================================================
   求人検索窓：サジェスト機能（キャッシュ・企業名特化版）カスタムスタイル最終版
   ========================================================================== */

/* 1. サジェストリストのコンテナ全体 */
.ui-autocomplete {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    max-height: 350px;
    overflow-y: auto;
    z-index: 99999 !important;
    padding: 6px 0 !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    margin-top: 4px !important; 

    /* ★【明朝体対策】サイト全体のフォントを強制的に引き継がせる */
    font-family: inherit !important; 
}

/* スクロールバー */
.ui-autocomplete::-webkit-scrollbar {
    width: 6px;
}
.ui-autocomplete::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 6px 6px 0;
}
.ui-autocomplete::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* 各候補の行 */
.ui-menu-item {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ui-menu-item .ui-menu-item-wrapper {
    display: block;
    padding: 12px 16px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #333333 !important;
    cursor: pointer;
    border: none !important;
    background: transparent !important;
    transition: background 0.1s ease, color 0.1s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    /* ★念のため子要素の行にも引き継ぎを設定 */
    font-family: inherit !important;
}

/* マウスホバー・キーボード選択時のハイライト */
.ui-menu-item .ui-menu-item-wrapper.ui-state-active,
.ui-menu-item .ui-menu-item-wrapper:hover {
    background-color: #3458ab !important;
    color: #ffffff !important;
    border: none !important;
    margin: 0 !important;
}

/* アクセシビリティ用非表示隠し */
.ui-helper-hidden-accessible {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* 履歴アイテムの行：右側にボタンを配置するための余白を広げる */
.ui-menu-item.is-history-item .ui-menu-item-wrapper {
    position: relative;
    padding-right: 48px !important; /* ×ボタンの領域を確保 */
}

/* 履歴削除用の×ボタン：サイズを大きくし、右端へジャスト配置 */
.js-history-delete-btn {
    position: absolute;
    right: 0;                /* 右端ぴったりに揃える */
    top: 0;                  /* 上下いっぱいに広げる */
    bottom: 0;               /* 上下いっぱいに広げる */
    width: 44px;             /* タップしやすい十分な横幅（スマホ推奨サイズ） */
    display: flex;
    align-items: center;     /* ×を上下中央に */
    justify-content: center;  /* ×を左右中央に */
    font-size: 22px;         /* バツ印自体を少し大きく太く */
    font-weight: bold;
    color: #aaaaaa;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
    z-index: 10;
    
    /* ★×マークのフォントも乱れないように固定 */
    font-family: sans-serif !important; 
}

/* ×ボタンにマウスホバーした時 */
.js-history-delete-btn:hover {
    color: #333333;
    background-color: rgba(0, 0, 0, 0.05); 
}

/* サジェスト全体が選択（青背景）されている時の×ボタンのカラー微調整 */
.ui-menu-item .ui-menu-item-wrapper.ui-state-active .js-history-delete-btn {
    color: #dddddd;
}
.ui-menu-item .ui-menu-item-wrapper.ui-state-active .js-history-delete-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   【スマホ明朝体対策】サジェストとその中のすべての要素のフォントを強制リセット
   ========================================================================== */
.ui-autocomplete,
.ui-autocomplete *,
.ui-menu-item,
.ui-menu-item-wrapper,
.js-history-delete-btn {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif !important;
}


/* ==========================================================================
   追加：求人カード内 works_tag のカスタムスタイル
   ========================================================================== */
.card-works-tags-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-top: 12px !important;
    width: 100% !important;
}

.card-works-tag-item {
    display: inline-block !important;
    background-color: #fff !important;
    color: #333 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    border: 1px solid #ddd !important;
}

/* スマホ閲覧時（横幅が狭い場合）のフォントサイズ微調整 */
@media screen and (max-width: 600px) {
    .card-works-tags-container {
        margin-top: 10px !important;
        gap: 4px !important;
    }
    .card-works-tag-item {
        font-size: 10px !important;
        padding: 4px 6px !important;
    }
}


/* ==========================================================================
   注目の求人専用ページ：サイドバー内・ピックアップ企業専用スタイル
   ※すべての共通クラスを排除。他のページに100%干渉しません。
   ========================================================================== */

/* このページ専用の独立したサイドバー外枠（追従制御） */
.pickup-sidebar-right { 
    width: 340px !important; 
    flex-shrink: 0 !important; 
    align-self: stretch !important; 
}

/* スマホ閲覧時（1024px以下）のレイアウト切り替え制御 */
@media screen and (max-width: 1024px) {
    .pickup-sidebar-right { 
        display: block !important; 
        width: 100% !important; 
        margin-top: 40px !important;
    }
}

/* ピックアップ企業外枠カード（全体の背景・丸み・影を維持） */
.pickup-company-card {
    background: #fff !important; 
    border: 1px solid #eee !important; 
    border-radius: 20px !important; 
    padding: 22px 20px !important; 
    position: -webkit-sticky !important;
    position: sticky !important; 
    top: 20px !important; 
    box-shadow: 0 3px 15px rgba(0,0,0,0.04) !important; 
    box-sizing: border-box !important; 
    z-index: 10;
}

/* タイトル部分 */
.pickup-company-title { 
    font-size: 16px !important; 
    color: #3458ab; 
    font-weight: bold !important; 
    margin-top: 0 !important;
    margin-bottom: 10px !important; 
    border-bottom: 2px solid #3458ab !important; 
    padding-bottom: 10px !important; 
}

/* 縦並びのコンテナ */
.pickup-company-list {
    display: flex;
    flex-direction: column;
    gap: 0; 
}

/* 企業アイテム（下線のみで区切るリスト形式） */
.pickup-company-item {
    background: transparent !important; 
    border: none !important; 
    border-bottom: 1px solid #f0f0f0 !important; 
    border-radius: 0 !important; 
    box-shadow: none !important;
    transform: none !important;
    transition: background-color 0.2s ease;
}

/* リンクエリア内部 */
.pickup-company-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 14px 4px !important; 
    height: 100%;
    box-sizing: border-box;
}

/* ロゴの縮小最適化 */
.pickup-company-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    margin-right: 12px;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #eaedf2;
    transition: border-color 0.2s ease;
}

.pickup-company-logo img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.pickup-company-body {
    flex-grow: 1;
    min-width: 0;
}

/* 企業名の1行省略クリップ */
.pickup-company-name {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #333 !important;
    margin: 0 0 4px 0 !important;
    border: none !important;
    padding: 0 !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    transition: color 0.2s ease;
}

.pickup-company-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pickup-company-count {
    font-size: 12px;
    color: #777;
}

.pickup-company-count strong {
    color: #3458ab;
    font-size: 16px;
    font-family: 'Verdana', sans-serif !important;
}

/* 矢印（＞）のスタイル */
.pickup-company-arrow {
    color: #ccc;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.2s ease;
}

/* --------------------------------------------------------------------------
   専用のホバーインタラクション
   -------------------------------------------------------------------------- */
.pickup-company-item:hover {
    background-color: #f9fbfd !important; 
}

.pickup-company-item:hover .pickup-company-name {
    color: #3458ab !important; 
}

.pickup-company-item:hover .pickup-company-logo {
    border-color: #3458ab; 
}

.pickup-company-item:hover .pickup-company-arrow {
    color: #3458ab;
    transform: translateX(2px); 
}

/* 下部：もっと見るリンクボタン */
.pickup-company-more-link {
    margin-top: 12px;
    text-align: center;
    padding-top: 12px;
}

.pickup-company-more-link a {
    font-size: 13px;
    color: #555;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
    display: inline-block;
}

.pickup-company-more-link a:hover {
    color: #3458ab;
    text-decoration: underline;
}




.header-search-container {
    margin-bottom: 20px;
}

/* 擬似ボックス：高さを44px固定、中身を「絶対に1行」に制限して上下中央揃え */
.pseudo-search-box-wrap {
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 44px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
}

/* バッジを包むコンテナ：絶対に改行させず、1行に横並び */
.accordion-closed-badges-wrap {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    overflow: hidden;
}

/* 各バッジのスタイル調整 */
.accordion-closed-badges-wrap .condition-badge,
.selected-conditions-display .condition-badge {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    padding: 4px 8px;
    background: #f0f4f8;
    color: #3458ab;
    border-radius: 3px;
    font-size: 12px;
    flex-shrink: 0;
}

.pseudo-search-box-wrap #js-badge-empty-msg {
    margin: 0;
    padding: 0 4px;
    font-size: 14px;
    color: #999;
    font-weight: 500;
    line-height: 1;
}

/* アコーディオン内の選択済みバッジ表示領域（ここでボタンの突き抜けを防ぎます） */
.selected-conditions-display {
    max-height: 80px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding-right: 4px;
}

/* アコーディオン全体のインナー構造 */
.search-accordion {
    margin-top: 0px;
}
.accordion-inner {
    max-height: 75vh;
    overflow-y: auto;
    padding: 15px;
}

/* アコーディオン内・最下部のボタンエリア */
.accordion-bottom-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.accordion-bottom-actions .reset-wrap {
    text-align: center;
}
.accordion-bottom-actions .reset-link-btn {
    color: #666;
    font-size: 13px;
    text-decoration: underline;
}
.accordion-bottom-actions .button-pair-wrap {
    display: flex;
    gap: 12px;
    width: 100%;
}
.accordion-bottom-actions .btn-close {
    flex: 3;
    height: 44px;
    background: #fff;
    color: #3458ab;
    border: 1px solid #3458ab;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    box-sizing: border-box;
}
.accordion-bottom-actions .btn-submit {
    flex: 7;
    height: 44px;
    background: #3458ab;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    box-sizing: border-box;
}

#js-pseudo-badge-other-container {
    display: inline-block;
}