/* geekneer.com のトンマナに合わせたスタイル(DESIGN_NOTES.md参照、実サイトから配色を実測して反映) */
:root {
  --blue: #0b5092;
  --blue-dark: #094e9d;
  --teal: #00aed0;
  --orange: #ff9500;
  --red: #f4323d;
  --gold: #dbbd47;
  --text: #222222;
  --text-sub: #333333;
  --text-muted: #666666;
  --bg-light: #f7f7f7;
  --bg-lighter: #f6f9fb;
  --border: #eeeeee;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Zen Kaku Gothic New", sans-serif;
  color: var(--text-sub);
  background: #fff;
  line-height: 1.7;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ヘッダー */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-logo:hover { text-decoration: none; }
.site-logo__img { display: block; height: 28px; width: auto; }
.site-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-dark);
  background: var(--bg-lighter);
  border: 1px solid #d9e6f2;
  padding: 2px 9px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.auth-nav {
  margin-left: auto;
  display: flex;
  gap: 12px;
  font-size: 13px;
}
.auth-nav a { color: var(--text-muted); }
.auth-nav a:hover { color: var(--blue); text-decoration: none; }

.breadcrumb {
  margin-left: auto;
  font-size: 12px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: var(--blue); text-decoration: none; }
.breadcrumb__current { color: var(--text-muted); }
.breadcrumb__sep { color: #ccc; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* 見出し */
.page-heading { margin-bottom: 28px; }
.page-heading h1 {
  position: relative;
  display: inline-block;
  font-size: 28px;
  color: var(--text);
  margin: 0 0 14px;
  padding-bottom: 14px;
  word-break: break-word;
}
.page-heading h1::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--red));
}
.page-heading__lead { color: var(--text-muted); font-size: 14px; margin: 0; }
.page-heading__notice { margin-left: 12px; font-size: 12px; color: #999; }

h1 { font-size: 26px; color: var(--text); margin: 0 0 8px; word-break: break-word; }
h2 { font-size: 18px; color: var(--text); margin: 32px 0 12px; border-left: 4px solid var(--blue); padding-left: 10px; }

.container p { word-break: break-word; overflow-wrap: break-word; }
.container ul { padding-left: 1.4em; margin: 0 0 16px; }
.container ul li { margin-bottom: 6px; }

/* 検索フォーム */
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--bg-lighter);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 28px;
}
/* 職種の直後に強制改行し、言語・フレームワークを常に同じ行にまとめる */
.search-form__break {
  flex-basis: 100%;
  height: 0;
}
.search-form input[type=text],
.search-form select {
  flex: 1 1 200px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text-sub);
}
.search-form select {
  flex: 0 1 170px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 32px;
  cursor: pointer;
}
/* 副業可チェックボックス：プルダウンと同じピル型の枠に揃える */
.search-form__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
  background: #fff;
  color: var(--text-sub);
  cursor: pointer;
  user-select: none;
}
.search-form__check input { margin: 0; cursor: pointer; }
.search-form button {
  background: linear-gradient(90deg, var(--teal) 0%, var(--blue-dark) 100%);
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}
.search-form button:hover { opacity: 0.92; }

/* 求人カード */
.job-card {
  display: block;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px 18px 24px;
  margin-bottom: 14px;
  transition: box-shadow .15s, border-color .15s;
  overflow: hidden;
}
.job-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--teal), var(--blue-dark));
  opacity: 0;
  transition: opacity .15s;
}
.job-card:hover {
  box-shadow: 0 4px 16px rgba(11, 80, 146, 0.1);
  border-color: #e0e8ee;
  text-decoration: none;
}
.job-card:hover::before { opacity: 1; }
.job-card .badge-new {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.job-card .job-title { font-size: 16px; font-weight: 700; color: var(--text); margin: 0 0 6px; }
/* カード全体は<a>ではなくdivにし、タイトル部分のリンクを::afterでカード全体まで
   広げることで「カードクリックで求人詳細へ」を維持しつつ、企業名だけ別リンクにできるようにしている
   (aタグの入れ子はHTML的に無効なため)。 */
.job-card__stretched-link { display: block; color: inherit; }
.job-card__stretched-link:hover { text-decoration: none; }
.job-card__stretched-link::after {
  content: '';
  position: absolute;
  inset: 0;
}
.job-card .job-company { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.job-card__company-link {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
}
.job-card__company-link:hover { color: var(--blue); }
.job-card .job-meta { font-size: 13px; color: #555; display: flex; gap: 10px; flex-wrap: wrap; }
.job-card .job-meta span { background: var(--bg-light); padding: 2px 10px; border-radius: 10px; }

/* ページネーション */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-block;
  min-width: 34px;
  text-align: center;
  padding: 6px 4px;
  border-radius: 17px;
  border: 1px solid #ddd;
  font-size: 14px;
}
.pagination a:hover { border-color: var(--blue); text-decoration: none; }
.pagination .current {
  background: linear-gradient(90deg, var(--teal) 0%, var(--blue-dark) 100%);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}
.pagination .ellipsis { border: none; color: #999; min-width: auto; padding: 6px 2px; }

/* 詳細ページ */
.job-header { border-bottom: 2px solid var(--bg-light); padding-bottom: 20px; margin-bottom: 20px; }
.job-header .job-company { color: var(--text-muted); font-size: 14px; margin-bottom: 6px; }
.job-meta-table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; }
.job-meta-table th {
  width: 140px;
  text-align: left;
  background: var(--bg-lighter);
  padding: 10px 12px;
  font-size: 13px;
  color: #555;
  vertical-align: top;
}
.job-meta-table td { padding: 10px 12px; font-size: 14px; border-bottom: 1px solid #f0f0f0; }

.apply-cta {
  display: block;
  text-align: center;
  background: linear-gradient(90deg, var(--orange) 9%, var(--red) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 16px;
  border-radius: 30px;
  margin: 32px 0;
}
.apply-cta:hover { text-decoration: none; opacity: 0.92; }
.job-notice { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin: 8px 0; }

.back-link { display: inline-block; margin-bottom: 16px; font-size: 14px; }

.related-links { margin: 24px 0; font-size: 13px; line-height: 2; }
.related-links a { color: var(--blue); }
.related-links a:hover { text-decoration: underline; }
.related-links__sep { color: #ccc; margin: 0 8px; }

/* 会員登録・ログイン */
.auth-form {
  max-width: 420px;
  display: flex;
  flex-direction: column;
}
.auth-form[hidden] { display: none; }
.auth-form label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  margin: 16px 0 6px;
}
.auth-form label:first-of-type { margin-top: 0; }
.auth-form .required {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  border-radius: 3px;
  padding: 1px 6px;
  margin-left: 4px;
}
.auth-form input,
.auth-form textarea {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-sub);
}
.auth-form textarea {
  font-family: inherit;
  resize: vertical;
}
.auth-form .field-hint { font-size: 12px; color: var(--text-muted); margin: 4px 0 0; }
/* アップロード送信後、フォームと入れ替わりで表示する待機画面（2026-09-11、清水さんFB：
   ボタン下への追記ではなく画面ごと切り替える演出に変更）。 */
.upload-wait {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 260px;
  padding: 60px 20px;
}
.upload-wait[hidden] { display: none; }
.upload-wait__message {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  max-width: 480px;
  margin: 0 0 18px;
  opacity: 0;
  transform: translateY(16px);
  animation: upload-wait-message-in 0.9s ease forwards;
}
@keyframes upload-wait-message-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.upload-wait__status {
  font-size: 12px;
  color: var(--text-muted);
}
/* 希望条件（キーワード自由記述）はlogin/register等の短い項目と違い内容が長くなりやすいため、
   mypage.php・confirm_resume.phpの該当フォームだけ横幅を広げる（PC幅がある場合のみ）。 */
.auth-form--wide { max-width: 420px; }
@media (min-width: 768px) {
  .auth-form--wide { max-width: 680px; }
}
.auth-form__checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 18px 0 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-sub);
}
.auth-form__checkbox input { width: auto; }
.auth-form button {
  margin-top: 28px;
  padding: 12px;
  border: none;
  border-radius: 24px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--blue-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.auth-form button:hover { opacity: 0.92; }
.auth-form__switch { margin-top: 20px; font-size: 14px; }

.form-errors {
  background: #fdecea;
  border: 1px solid #f4c7c3;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 20px;
}
.form-errors ul { margin: 0; padding-left: 1.2em; }
.form-errors li { color: var(--red); font-size: 14px; }

/* フッター */
.site-footer {
  background: var(--text);
  color: #bbb;
  margin-top: 40px;
}
.site-footer__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 20px;
  text-align: center;
}
.site-footer__tagline { font-size: 14px; margin: 0 0 16px; color: #ddd; }
.site-footer__tagline a { color: #fff; font-weight: 700; }
.site-footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 20px;
}
.site-footer__nav a { color: #bbb; font-size: 13px; }
.site-footer__nav a:hover { color: #fff; text-decoration: none; }
.site-footer__nav--tech {
  padding-top: 16px;
  margin-top: -4px;
  border-top: 1px solid #444;
  gap: 6px 16px;
}
.site-footer__nav--tech a { font-size: 12px; color: #999; }
.site-footer__nav--tech a:hover { color: #fff; }
.site-footer__copyright { font-size: 12px; color: #888; margin: 0; }

.empty-state { text-align: center; color: #888; padding: 60px 0; }
.admin-match-wait{display:flex;align-items:center;gap:12px;margin:20px 0;padding:18px 20px;border-radius:8px;background:var(--bg-lighter,#f3f5f5);color:var(--text-muted,#617078)}
.admin-match-wait[hidden]{display:none}
.admin-match-wait__spinner{width:18px;height:18px;flex:none;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:admin-match-spin .8s linear infinite}
@keyframes admin-match-spin{to{transform:rotate(360deg)}}

/* CA向けマッチング一覧（admin/match.php）。最大30件程度並ぶため、齋藤さんFB(2026-09-24)を
   受けて必須条件・歓迎条件を小さめフォント・表組みにし、1件あたりの表示範囲を抑える */
.job-match-bulk { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.job-match-bulk button { padding: 6px 12px; font-size: 13px; cursor: pointer; }
.job-match-bulk .field-hint { margin: 0 0 0 8px; }
.job-match-list__location { font-size: 13px; color: var(--text-muted); }
.job-match-list__company { margin: 2px 0 6px; }
.job-match-list { list-style: none; padding: 0; margin: 0 0 16px; }
.job-match-list > li { padding: 18px 0; border-bottom: 1px solid #e5e5e5; }
.job-match-list > li:first-child { padding-top: 0; }
.job-match-list__conditions { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 10px 0 0; font-size: 12px; }
.job-match-list__conditions th {
  width: 50%;
  text-align: left;
  background: var(--bg-lighter);
  padding: 6px 8px;
  font-weight: 600;
  color: #555;
  vertical-align: top;
  border-bottom: 1px solid #f0f0f0;
}
.job-match-list__conditions td { width: 50%; padding: 6px 8px; border-bottom: 1px solid #f0f0f0; vertical-align: top; overflow-wrap: anywhere; }
.job-match-list__conditions p, .job-match-list__conditions ul { margin: 0 0 4px; }
.job-match-list__conditions ul { padding-left: 1.2em; }
.job-match-list__conditions li { margin-bottom: 2px; }
.job-match-list__conditions tr:last-child th,
.job-match-list__conditions tr:last-child td { border-bottom: none; }
