/* css/style-job-search.css */

/* Reset & Basic Styles */
:root {
  --primary-color: #26a69a; /* Teal */
  --dark-gray: #333333;
  --mid-gray: #757575;
  --light-gray-bg: #f5f5f5;
  --border-color: #e0e0e0;
  --white-color: #ffffff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    Meiryo, sans-serif;
  margin: 0;
  background-color: var(--white-color);
  color: var(--dark-gray);
}

/* Header Mockup */
.job-search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: var(--dark-gray);
  color: var(--white-color);
}
.job-search-header .logo {
  font-weight: bold;
}
.job-search-header .user-info {
  font-size: 0.9em;
}
.job-search-header .menu-icon {
  font-size: 24px;
  line-height: 1;
}

/* Main Content */
.job-search-container {
  padding: auto 15px;
  padding-bottom: 120px;
}

.page-title {
  font-size: 1.5em;
  font-weight: bold;
  margin: 0 0 15px 0;
}

/* ★★★ このボタンのスタイルは不要になるのでコメントアウトまたは削除 ★★★ */
/*
.btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  box-sizing: border-box;
}

.btn-secondary {
  border: 1px solid var(--border-color);
  background-color: var(--white-color);
  color: var(--dark-gray);
  margin-bottom: 25px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  margin-top: 30px;
}
*/

/* Filter Groups */
.filter-group {
  margin-bottom: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.filter-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
}

.filter-group-header h3 {
  margin: 0;
  font-size: 1.1em;
}

.filter-group-header .clear-link {
  font-size: 0.8em;
  color: var(--mid-gray);
  text-decoration: none;
}

/* Header Colors */
.filter-group-header.bg-teal {
  background-color: var(--primary-color);
  color: var(--white-color);
}
.filter-group-header.bg-teal .clear-link {
  color: var(--white-color);
  opacity: 0.9;
}

.filter-group-header.bg-gray {
  background-color: var(--light-gray-bg);
}

/* Filter Content */
.filter-group-content {
  padding: 15px;
}

.filter-group-content .sub-heading {
  font-size: 0.9em;
  font-weight: bold;
  color: var(--primary-color);
  margin: 0 0 15px 0;
}

.checkbox-grid,
.checkbox-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.checkbox-list {
  grid-template-columns: 1fr;
}

.checkbox-item,
.radio-item {
  display: flex;
  align-items: center;
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
  margin-right: 8px;
  width: 18px;
  height: 18px;
}

.checkbox-item label,
.radio-item label {
  flex: 1;
}

.view-all-btn {
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--dark-gray);
  padding: 10px;
  width: 100%;
  margin-top: 20px;
  border-radius: 4px;
  cursor: pointer;
}

/* Specific Filter Styles */
.salary-options .radio-item {
  margin-bottom: 15px;
}
.salary-range {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 26px; /* indent under radio button */
}
.salary-range select {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}
.salary-range span {
  flex-shrink: 0;
}

.free-word-input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-sizing: border-box;
}

/* 
 * ===============================================
 * ★★★ ここからが追記箇所 ★★★
 * 検索ボタン用の追従フッター
 * ===============================================
 */
.search-cta-footer {
  position: fixed; /* 画面下部に固定 */
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background-color: var(--white-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* 上向きの影 */
  box-sizing: border-box; /* paddingを含めて幅を100%に */
  z-index: 100; /* 他の要素より手前に表示 */
}

.btn-search-submit {
  display: block;
  width: 100%;
  max-width: 500px; /* PCでの最大幅 */
  margin: 0 auto; /* 中央寄せ */
  background-color: #ff6f00; /* オレンジ色の背景 */
  color: #fff;
  padding: 12px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  border: none; /* buttonタグのデフォルト線を消す */
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-search-submit:hover {
  background-color: #e66000; /* ホバー時、少し濃いオレンジに */
}
