@charset "utf-8";

/* ============================================================================
 * File: assets/css/page-jobs.css
 * Role: 採用情報ページ専用スタイル（一覧・詳細）
 * ========================================================================== */

/* ===== ページヒーロー (全ページ共通として別で用意しても良いが、一旦ここに記述) ===== */
.page-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 120px 20px 50px;
  text-align: center;
}
.page-hero h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.page-hero p { font-size: 0.9rem; opacity: 0.8; }

/* ===== 一覧エリア (jobs.php) ===== */
.jobs-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 24px 80px;
}

.jobs-count {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 30px;
}
.jobs-count strong {
  color: var(--theme-accent);
  font-size: 1.3rem;
  font-weight: 700;
}

.job-card {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.empty-msg {
  text-align: center;
  padding: 80px 20px;
  color: var(--color-text-light);
  font-size: 1rem;
}
.empty-msg .icon { font-size: 2.5rem; display: block; margin-bottom: 15px; }

/* ===== 求人詳細 (jobs-detail.php) ===== */
/* 詳細ヒーロー */
.job-hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 120px 20px 50px;
  text-align: center;
  overflow: hidden;
}
.job-hero__breadcrumb {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-bottom: 16px;
}
.job-hero__breadcrumb a { color: #fff; text-decoration: underline; }
.job-hero__breadcrumb a:hover { color: var(--theme-accent); }
.job-hero h1 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto 12px;
}
.job-hero__tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.job-hero__tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--theme-accent);
  color: #fff;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
.job-hero__tag--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
}

/* メイン画像 */
.job-main-image {
  max-width: 900px;
  margin: -30px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.job-main-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: none;
  display: block;
}

/* コンテンツ */
.job-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* 募集要項テーブル */
.job-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 50px;
}
.job-table th,
.job-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.8;
  vertical-align: top;
}
.job-table th {
  width: 140px;
  font-weight: 700;
  color: var(--color-text);
  background: var(--color-bg-light);
  white-space: nowrap;
}
.job-table td {
  color: var(--color-text);
}

/* 仕事内容（説明文） */
.job-description {
  margin-bottom: 50px;
}
.job-description h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 4px solid var(--theme-accent);
}
.job-description__body {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--color-text);
  white-space: pre-wrap;
  word-break: break-all;
}

/* 備考 */
.job-notes {
  background: var(--color-bg-light);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 50px;
}
.job-notes h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}
.job-notes p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--color-text-light);
  white-space: pre-wrap;
}

/* 応募ボタン */
.job-apply {
  text-align: center;
  margin-bottom: 60px;
  padding: 50px 20px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 16px;
}
.job-apply__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}
.job-apply__text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 24px;
}
.job-apply__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 50px;
  background: var(--theme-accent);
  color: #fff;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all var(--transition-base);
  box-shadow: 0 4px 20px rgba(var(--theme-accent-rgb), 0.3);
}
.job-apply__btn:hover {
  background: var(--theme-accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(var(--theme-accent-rgb), 0.45);
}

/* 他の求人 */
.other-jobs {
  margin-bottom: 30px;
}
.other-jobs__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 24px;
  text-align: center;
}
.other-jobs .job-card {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

/* 一覧に戻るリンク */
.back-link {
  text-align: center;
  margin-top: 20px;
}
.back-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--theme-accent);
  transition: color var(--transition-base);
}
.back-link a:hover { color: var(--theme-accent-hover); }

@media (max-width: 768px) {
  .job-hero h1 { font-size: 1.3rem; }
  .job-table th {
    display: block;
    width: 100%;
    padding: 14px 16px 4px;
    border-bottom: none;
  }
  .job-table td {
    display: block;
    padding: 4px 16px 14px;
  }
  .job-main-image { margin-top: -20px; }
}
