/* =========================================
   ▼ 検索UI（外枠）
========================================= */
.xso-search-ui {
  background: #FFFFFF;
  font-size: 14px !important;
	margin: 0 auto !important;
}
/* =========================================
   ▼ 検索リスト（エリア/職種/特徴/雇用形態）
========================================= */
ul.xso-search-ui-list {
  margin-top: 0;
  margin-bottom: 0;
  padding: 5px 0;
}
.xso-search-ui-list li {
  list-style: none;
  border-bottom: #efece5 1px solid;
  padding: 5px;
  line-height: 3em;
}
/* =========================================
   ▼ 各項目の開くボタン
========================================= */
.xso-search-ui .open_btn {
  position: relative;
  display: flex;
  justify-content: space-between;
  color: #12807A;
  font-weight: bold;
  cursor: pointer;
  transition: .3s ease;
}
.xso-search-ui .open_btn:hover {
  color: #000;
  box-shadow: 0 0 8px #CFCFCF;
  padding-left: 20px;
  border-radius: 5px;
}
/* テキスト+アイコン */
.xso-search-ui .caption {
  font-size: 16px;
  position: relative;
	color: #12807A;
	font-weight: bold;
	margin-left: 20px;
}
.xso-search-ui .caption i {
  font-size: 20px;
  margin-right: 10px;
	color: #12807A;
}
/* ▼ 行全体クリック可能にする */
.popup_trigger_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 12px 5px;
}
.popup_trigger_row:hover {
  background: #FDFCF8;
}
/* 左のアイコン＋タイトル */
.popup_trigger_row .left {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* 中央（選択済みタグ） */
.popup_trigger_row .center {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  padding-left: 10px;
}
/* 右端の矢印 */
.popup_trigger_row .right.arrow-icon {
  width: 14px;
  height: 14px;
  border-right: 2px solid #9F9F9F;
  border-bottom: 2px solid #9F9F9F;
  transform: rotate(-45deg);
  margin-left: 10px;
  margin-right: 20px;
}

/* =========================================
   ▼ ポップアップ全体
========================================= */
/* ポップアップ背景（黒の半透明） */
.xso-search-ui .popup_overlay {
  display: flex;
  justify-content: center;
  overflow: auto;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  background: rgba(12, 35, 34, 0.65);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.5s, transform 0s 0.5s;
}
/* ▶ チェックON時にポップアップ開く */
.xso-search-ui .popup_wrap input:checked ~ .popup_overlay {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.5s;
}
/* 背景クリックで閉じる */
.xso-search-ui .popup_trigger {
  position: absolute;
  width: 100%;
  height: 100%;
}
/* ポップアップの中身ボックス */
.xso-search-ui .popup_content {
  position: relative;
  align-self: center;
  width: 80%;
  max-height: 80%;
  overflow-y: scroll;
  box-sizing: border-box;
  background: #fff;
  line-height: 1.4em;
  border-radius: 10px;
  transition: 0.5s;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}
/* スクロールバー（Chrome系） */
.xso-search-ui .popup_content::-webkit-scrollbar {
  width: 8px;
}
.xso-search-ui .popup_content::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
}
/* =========================================
   ▼ ポップアップ内ヘッダー（タイトル + ×）
========================================= */
.xso-search-ui h3 {
  font-size: 24px !important;
  color: #333;
  padding: 20px 30px !important;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10; 
}
/* ×ボタン */
.xso-search-ui .close_btn {
  position: absolute;
  top: 20px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: #64BFC0;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  cursor: pointer;
}
.xso-search-ui .close_btn:hover {
  background: #388F8F;
}
/*ポップアップ右上カウント*/
.count-badge {
	float: right;
	font-size: 14px;
	color: #4D4D4D;
	font-weight: normal;
	margin-right: 50px;
}
.count-num {
  color: #E84C75; 
  font-weight: bold;
	font-size: 26px;
}
.count-num {
  display: inline-block;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.count-num.spin {
  transform: rotateY(360deg);
  opacity: 0.3;
}
/* =========================================
   ▼ ポップアップの内容ボックス（中身）
========================================= */
.xso-search-ui .popup_content_box {
  display: block;
  margin: 0;
}
/* =========================================
   ▼ 下部の検索ボタン
========================================= */
.xso-search-ui .popup_content_btn {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 14px 20px;
  display: flex;
  justify-content: center;
  gap: 14px;
  border-top: 1px solid #e8e8e8;
  box-shadow: 0 -1px 4px rgba(0,0,0,0.05);
}
/* ▼ 検索する（メイン） */
.xso-search-ui .popup_content_btn .btn-square {
  background: #13807b !important;
  color: #fff;
  padding: 10px 26px !important;
  border-radius: 5px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 0 #235c59;
  transition: 
    box-shadow 0.25s ease,
    transform 0.25s ease;
}
.xso-search-ui .popup_content_btn .btn-square:hover {
  transform: translateY(4px);
  box-shadow: 0 0 0 transparent;
}
/* ▼ 他の条件を選択する（サブ） */
.xso-search-ui .popup_content_btn .other_btn {
  background: #f6f4ee;
  color: #444;
  padding: 10px 22px !important;
  border-radius: 5px;
  border: 1px solid #e4e0d8;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}
.xso-search-ui .popup_content_btn .other_btn:hover {
  background: #ece8df;
}
/* ▼ チェックを外す */
.xso-search-ui .popup_content_btn .clear_btn {
  color: #696969;
  background: none;
  padding: 10px 16px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 6px;
}
.xso-search-ui .popup_content_btn .clear_btn:hover {
	color: #494949;
}
/* ▼ 設定をクリア：無効状態 */
.clear_btn.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}
/* ▼ すべての設定をクリア：配置 */
.xso-clear-all-wrap {
  display: flex;
  justify-content: flex-end;
  padding: 10px 5px; 
}

/* ▼ ボタンデザイン */
.xso-clear-all {
  color: #696969;
  background: none;
  padding: 6px 14px;
  border: none;
  font-size: 12px !important;
  cursor: pointer;
  white-space: nowrap;
}

.xso-clear-all:hover {
  color: #333;
}
/* ▼ SP：縦並び */
@media (max-width: 560px) {
  .xso-search-ui .popup_content_btn {
    flex-direction: column;
    align-items: stretch;
  }
  .xso-search-ui .popup_content_btn button,
  .xso-search-ui .popup_content_btn label {
    width: 100%;
    text-align: center;
  }
}

/* =========================================
   ▼ メイン検索ボタン
========================================= */
.search-btn-area {
  text-align: center;
	margin: 0 auto;
	padding: 0;
}
.btn-square2 {
  background: #13807b !important;
  color: #fff;
  padding: 10px 26px !important;
  border-radius: 5px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 0 #235c59;
  transition: 
    box-shadow 0.25s ease,
    transform 0.25s ease;
}
.btn-square2:hover {
  transform: translateY(4px);
  box-shadow: 0 0 0 transparent;
}
/* =========================================
   ▼ employmenttype 用：ボタン下固定
========================================= */
.popup_content_btn {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 15px 0;
  display: flex;
  justify-content: center;
  gap: 25px;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.05);
}
/* 検索ボタン */
.popup_content_btn .btn-square {
  background: #64BFC0;
  color: #fff;
  padding: 10px 26px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.popup_content_btn .btn-square:hover {
  background: #4aa7a8;
}
/* 他の条件（閉じる） */
.popup_content_btn .other_btn {
  background: #f6f4ee;
  color: #444;
  padding: 10px 22px;
  border-radius: 6px;
  border: 1px solid #e4e0d8;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}
.popup_content_btn .other_btn:hover {
  background: #ece8df;
}
/* =========================================
   ▼ チェックボックス反映
========================================= */
.employmenttype_search {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* ▼ 右側のタグを横並びに */
.employmenttype_keywords {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 65%;
}
/* ▼ タグのデザイン（X付き） */
.selected-tag {
  display: inline-flex;
  align-items: center;
  background: #fbf7f0;
  color: #333;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 12px;
	line-height: 1;
}
.selected-tag .remove-tag {
  margin-left: 6px;
  cursor: pointer;
  font-weight: bold;
  color: #999;
}
.selected-tag .remove-tag:hover {
  color: #444;
}
.xso-search-ui .popup_wrap > input[type="checkbox"] {
  display: none !important;
}
/* =========================================
   ▼ SP対応（必要最低限）
========================================= */
@media screen and (max-width: 560px) {
  .xso-search-ui h3 {
    font-size: 20px !important;
    padding: 15px !important;
  }
}
/* =========================================
   ▼ チェックボックス共通
========================================= */
.employmenttype-list li,
.jobtype-children li,
.favorite-list li,
.xa-grand-list li {
  list-style: none;
}
.employmenttype-list input[type="checkbox"],
.jobtype-children input[type="checkbox"],
.favorite-list input[type="checkbox"],
.xa-grand-list input[type="checkbox"] {
  display: none !important;
}
/* ラベル */
.employmenttype-list li label,
.jobtype-children li label,
.favorite-list li label,
.xa-grand-list li label  {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 16px;
  color: #333;
  position: relative;
  padding-left: 30px; 
}
/* ▼ 未チェックの四角 */
.employmenttype-list li label::before,
.jobtype-children li label::before,
.favorite-list li label::before,
.xa-grand-list li label::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: #C9E8E7;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.2s ease;
}
/* ▼ チェックされた時（四角を上書き） */
.employmenttype-list input[type="checkbox"]:checked + span::before,
.jobtype-children input[type="checkbox"]:checked + span::before,
.favorite-list input[type="checkbox"]:checked + span::before,
.xa-grand-list input[type="checkbox"]:checked + span::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: #64BFC0;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23fff" viewBox="0 0 24 24"><path d="M20.285 2.859l-11.81 11.81-4.761-4.761-2.285 2.285 7.046 7.046 14.095-14.095z"/></svg>') no-repeat center;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23fff" viewBox="0 0 24 24"><path d="M20.285 2.859l-11.81 11.81-4.761-4.761-2.285 2.285 7.046 7.046 14.095-14.095z"/></svg>') no-repeat center;
}
/* ▼ チェック時の文字色 */
.employmenttype-list input[type="checkbox"]:checked + span,
.jobtype-children input[type="checkbox"]:checked + span,
.favorite-list input[type="checkbox"]:checked + span,
.xa-grand-list input[type="checkbox"]:checked + span {
  font-weight: bold;
  color: #12807A;
}

/* ===============================
   ▼ エリアのポップアップ
=============================== */
/* UL 全体 */
.xa-accordion {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: sans-serif;
}
/* 親 */
.xa-parent {
  margin-bottom: 5px;
  overflow: hidden;
}
.xa-parent__header {
  padding: 15px 20px;
  font-size: 18px;
  font-weight: 700;
  color: #13807B;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #D9E7E6;
}
/* ▼ 一番上の親だけ最初に線を付ける */
.xa-parent:first-child .xa-parent__header {
  border-top: 1px solid #D9E7E6;
}
/* ▼ 開いている親だけ border-top を追加する */
.xa-parent.open .xa-parent__header {
  border-top: 1px solid #D9E7E6;
}
/* 子リスト（親の中） */
.xa-child-list {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
}
/* 子 */
.xa-child {
  margin: 10px 15px;
  border-bottom: 1px solid #D9E7E6;
  padding-bottom: 10px;
}
/* 子ヘッダー */
.xa-child__header {
  background: #fff;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #13807B;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .2s;
}
.xa-child__header:hover {
  background: #F6FDFD;
}
/* 孫（4カラム） */
.xa-grand-list {
  list-style: none;
  margin: 0;
  padding: 0 10px 0 10px;
  gap: 8px 12px;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
/* ▼ 孫の開閉は専用クラスで制御（is-open-grand） */
.xa-grand-list.is-open-grand {
  max-height: 800px; 
}
.xa-grand-list li label {
  display: flex;
  align-items: center;
  font-size: 16px;
}
/* ▼ 矢印 */
.xa-arrow {
  font-size: 13px;
  transition: .25s;
}
.xa-rotate {
  transform: rotate(180deg);
}
.xa-rotate-90 {
  transform: rotate(90deg);
}
.disabled-item {
  opacity: 0.4;
  pointer-events: none;
}
.disabled-item input {
  cursor: not-allowed;
}
/* ===============================
   ▼ 職種のポップアップ
=============================== */
/* 親ブロック */
.jobtype-list {
  margin: 0;
  padding: 20px 25px;
  list-style: none;
}
/* 親見出し */
.jobtype-heading {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 10px 0;
  color: #12807A;
	background: none;
	padding: 0 10px;
	border-bottom: #DADADA 1px solid;
}
/* 子の3カラムレイアウト */
.jobtype-children {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0 0 25px 0;
  padding: 0 10px 0 10px;
  gap: 8px 12px;
}

/* ===============================
   ▼ 特徴のポップアップ
=============================== */
/* 4カラムレイアウト */
.favorite-list {
  margin: 0;
  padding: 20px 25px;
  list-style: none;
}
/* 親見出し */
.jobtype-heading {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 10px 0;
  color: #12807A;
	background: none;
	padding: 0 10px;
	border-bottom: #DADADA 1px solid;
}
/* 子の3カラムレイアウト */
.favorite-list .jobtype-children {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 10px 0 10px;
  gap: 8px 12px;
  list-style: none;
  margin: 0 0 25px 0;
}
/* =========================================
   ▼ 雇用形態のポップアップ
========================================= */
/* レイアウト */
.employmenttype-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 10px 0 10px;
  gap: 8px 12px;
}
/* =========================================
   ▼ 登録のないチェックボックス
========================================= */
.jobtype-children .disabled-item {
  opacity: 0.4;
  pointer-events: none;
}
/* 見た目：チェック不可の雰囲気 */
.jobtype-children .disabled-item span {
  color: #999;
}
/* チェックボックスの無効表示 */
.jobtype-children .disabled-item input[type="checkbox"] {
  cursor: not-allowed;
}
.jobtype-children .count,
.xa-grand-list .count {
	font-size: 12px;
}
/* =========================================================
   ▼ スマホ用：タイトル小さく＋余白ギュッとする
   共通で4つのポップアップに効くやつ
========================================================= */
@media (max-width: 560px) {
/* ポップアップの中身ボックス */
.xso-search-ui .popup_content {
  width: 98%;
  max-height: 100%;
}
/* ×ボタン */
.xso-search-ui .close_btn {
  top: 10px;
  right: 10px;
}
/*タグはスマホでは1カラム*/
.popup_trigger_row .center {
    display: flex;
    flex-wrap: wrap;
    white-space: normal !important;
    flex: 1; 
    max-height: 3.6em;
    overflow: hidden;
    padding-left: 4px;
    margin-top: 4px;
  }
.popup_trigger_row .center::after {
    content: "…";
    position: absolute;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, transparent, #fff 50%);
    padding-left: 10px;
  }
  /* --- h3（エリア／職種／特徴／雇用形態） --- */
  .xso-search-ui h3 {
    font-size: 16px !important;
    padding: 12px 15px !important;
  }
  /* --- 親カテゴリタイトル（jobtype-heading） --- */
  .jobtype-heading {
    font-size: 15px !important;
    padding: 8px 10px !important;
    margin-bottom: 8px !important;
  }
  /* --- xa-parent（エリアの親ブロック） --- */
  .xa-parent__header {
    padding: 12px 15px !important;
    font-size: 15px !important;
  }
  /* --- エリアの子ブロック（xa-child） --- */
  .xa-child {
    margin: 6px 10px !important;
    padding-bottom: 6px !important;
  }
  .xa-child__header {
    padding: 10px 15px !important;
    font-size: 14px !important;
  }
/* 孫（4カラム） */
.xa-grand-list {
  grid-template-columns: repeat(1, 1fr);
}
/* 子の3カラムレイアウト */
.jobtype-children {
  grid-template-columns: repeat(1, 1fr);
}
/* 子の3カラムレイアウト */
.favorite-list .jobtype-children {
  grid-template-columns: repeat(1, 1fr);
}
/* レイアウト */
.employmenttype-list {
  grid-template-columns: repeat(1, 1fr);
}
}
