/*
 * style-single-job.css
 * 求人個別ページ用のスタイル
 */

/* ===== 基本設定 ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* 全体のコンテナ */
.job-detail-container {
  max-width: 960px;
  margin: 2em auto;
  padding: 0;
  background-color: #fff;
  border: 1px solid #e8e8e8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  overflow: hidden;
}

/* ===== 新ヘッダー ===== */
.new-job-header {
  padding: 2.5em;
  text-align: left;
}

.job-category-tags {
  margin-bottom: 1em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.job-category-tag {
  display: inline-block;
  padding: 0.3em 0.9em;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  border-radius: 4px;
  background-color: #8a959e; /* デフォルトの色 (グレー系) */
  text-decoration: none;
  transition: background-color 0.2s;
}
.job-category-tag:hover {
  background-color: #6c757d;
}
.job-category-tag.new {
  background-color: #e65a41; /* 既存のオレンジ色を使用 */
}
.job-category-tag.new:hover {
  background-color: #d34a31;
}

.job-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0.2em 0 0.6em 0;
  line-height: 1.4;
  color: #212529;
}

/* 特徴タグのラッパー */
.job-features-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em;
  margin-bottom: 2em;
}

.feature-tag {
  display: inline-block;
  padding: 0.5em 1.2em;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 20px; /* 角を丸くする */
  border: 1px solid #fedcd5; /* オレンジ系の薄い色 */
  background-color: #fff8f6; /* オレンジ系のさらに薄い色 */
  color: #bf492f; /* オレンジ系の濃い色 */
  text-decoration: none;
  transition: all 0.2s;
}
.feature-tag:hover {
  border-color: #f7b2a2;
  background-color: #fee9e4;
  color: #a63f27;
}

/* 雇用形態タグ */
.feature-tag.employment-type {
  background-color: #e65a41;
  border-color: #e65a41;
  color: #fff;
  font-weight: 600;
}
.feature-tag.employment-type:hover {
  background-color: #d34a31;
  border-color: #d34a31;
}

/* スキルタグ */
.feature-tag.skill-tag {
  border-color: #e0e0e0;
  background-color: #f9f9f9;
  color: #555;
}
.feature-tag.skill-tag:hover {
  border-color: #c0c0c0;
  background-color: #f0f0f0;
  color: #333;
}

/* CTAボタン */
.job-cta-wrapper {
  text-align: center;
  width: 90%;
  padding-top: 2em;
  border-top: 1px solid #f0f0f0;
  margin: auto;
  margin-top: 2em;
}

.job-cta-button.apply {
  display: inline-block;
  padding: 1em 2em;
  width: 100%;
  max-width: 480px;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s;
  background-color: #e65a41;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(230, 90, 65, 0.3);
}
.job-cta-button.apply:hover {
  background-color: #d34a31;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(230, 90, 65, 0.35);
}

/* ===== 新・募集要項セクション ===== */
.recruitment-info {
  border-top: 1px solid #e8e8e8;
}

.recruitment-title {
  background-color: #f7f9fa;
  color: #343a40;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 1em 1.5em;
  margin: 0;
  border-bottom: 1px solid #e8e8e8;
}

.recruitment-row {
  display: flex;
  border-bottom: 1px solid #e8e8e8;
}
.recruitment-table > .recruitment-row:last-child {
  border-bottom: none;
}

.recruitment-label {
  width: 220px;
  flex-shrink: 0;
  background-color: #fcfcfd;
  padding: 1.5em;
  font-weight: 600;
  color: #495057;
  display: flex;
  align-items: flex-start;
  font-size: 0.95rem;
}

.recruitment-value {
  flex-grow: 1;
  padding: 1.5em;
  line-height: 1.9;
  background-color: #fff;
  word-break: break-all;
  color: #212529;
}

.recruitment-value p:first-child,
.recruitment-value h4:first-child {
  margin-top: 0;
}
.recruitment-value p:last-child {
  margin-bottom: 0;
}

.recruitment-value h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5em 0 0.8em 0;
  color: #343a40;
  padding-bottom: 0.4em;
  border-bottom: 1px solid #f0f0f0;
}
.recruitment-value h4:first-of-type {
  margin-top: 0;
}

.recruitment-value ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.recruitment-value li {
  margin-bottom: 0.6em;
  position: relative;
  padding-left: 1.4em;
}
.recruitment-value li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: #8a959e;
  font-weight: bold;
}

/* ===== 関連求人セクション ===== */
.related-jobs-section {
  padding: 4em 0;
  background-color: #f7f9fa;
  margin-top: 0; /* mainにmaring-bottomがないので不要に */
  border-top: 1px solid #e8e8e8;
}

.related-jobs-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1em;
}

.related-jobs-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1.5em;
  color: #212529;
}

.related-jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5em;
}

.related-job-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1.5em;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.related-job-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
  border-color: #d0d0d0;
}

.related-job-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.8em 0;
  line-height: 1.5;
  color: #212529;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3em;
}

.related-job-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  margin-bottom: 1em;
  font-size: 0.9rem;
  color: #495057;
}

.related-job-card-meta .meta-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.related-job-card-meta .meta-item.price {
  font-weight: bold;
  font-size: 1.05em;
  color: #e65a41;
}

.related-job-card-tags {
  margin-top: auto;
  padding-top: 1em;
  border-top: 1px solid #f0f0f0;
}
.related-job-card-tags .tag {
  display: inline-block;
  background-color: #f1f3f5;
  color: #495057;
  padding: 0.25em 0.7em;
  margin: 0 0.3em 0.3em 0;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* ===== レスポンシブ対応 ===== */
@media screen and (max-width: 768px) {
  .new-job-header {
    padding: 1.5em;
  }
  .job-title {
    font-size: 1.8rem;
  }
  .recruitment-row {
    flex-direction: column;
  }
  .recruitment-label {
    width: 100%;
    border-bottom: 1px dashed #ccc;
    padding: 1em 1.5em;
    align-items: center;
  }
  .recruitment-value {
    padding: 1em 1.5em;
  }
  .related-jobs-section {
    padding: 3em 0;
  }
}
