/* =========================================
   求人ポータル（一覧・詳細）
   column.css の上に読み込む
========================================= */

/* ---------- buttons ---------- */
.job-btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.job-btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 5px 0 var(--orange-dark);
}
.job-btn--primary:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--orange-dark); }
.job-btn:disabled { opacity: .6; cursor: wait; }

/* ---------- search panel ---------- */
.job-search {
  margin: 8px 0 32px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--pink-pale);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.job-search__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.4fr;
  gap: 16px;
}
.job-search__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.job-search__field > span,
.job-search__features legend {
  font-size: 13px;
  font-weight: 700;
  color: var(--pink-dark);
}
.job-search select,
.job-search input[type=search] {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--c-text);
  background: #fcfcfc;
  border: 1px solid #ddd;
  border-radius: 8px;
  -webkit-appearance: auto;
  appearance: auto;
}
.job-search select:focus,
.job-search input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-pale);
}
.job-search__features {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.job-search__features legend { margin-bottom: 8px; }
.job-chip-check { position: relative; cursor: pointer; }
.job-chip-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.job-chip-check span {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: 13px;
  color: var(--c-sub);
}
.job-chip-check input:checked + span {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  font-weight: 700;
}
.job-chip-check input:focus-visible + span {
  outline: 3px solid var(--pink-pale);
  outline-offset: 1px;
}
.job-search__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 22px;
}
.job-search__reset {
  font-size: 14px;
  color: var(--pink-dark);
  text-decoration: underline;
}

.job-count {
  margin-bottom: 16px;
  font-size: 15px;
}
.job-count strong {
  font-size: 22px;
  color: var(--pink-dark);
  margin: 0 2px;
}

/* ---------- job cards ---------- */
.job-list {
  display: grid;
  gap: 20px;
}
.job-card {
  background: #fff;
  border: 1px solid #f0e6e9;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .1);
}
.job-card__link {
  display: block;
  padding: 24px 28px;
  color: inherit;
  text-decoration: none;
}
.job-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.job-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  background: #f4f4f4;
  color: var(--c-sub);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.job-tag--cat {
  background: var(--pink-pale);
  color: var(--pink-dark);
}
.job-card__company {
  font-size: 14px;
  color: var(--c-sub);
  font-weight: 700;
}
.job-card__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 4px;
}
.job-card__facts {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  font-size: 14px;
}
.job-card__facts div { display: flex; gap: 12px; }
.job-card__facts dt {
  flex: 0 0 4em;
  color: var(--pink-dark);
  font-weight: 700;
}
.job-card__desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-sub);
}
.job-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.job-card__features li,
.job-card__features a {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--pink);
  border-radius: var(--radius-pill);
  color: var(--pink-dark);
  font-size: 12px;
  text-decoration: none;
}
.job-card__features li:has(a) { padding: 0; border: 0; }
.job-card__more {
  display: block;
  margin-top: 16px;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: var(--pink-dark);
}
.job-card__more::after { content: " ›"; }

/* ---------- detail ---------- */
.job-detail__header {
  margin: 8px 0 36px;
  padding: 28px;
  background: linear-gradient(135deg, var(--pink-pale) 0%, #fff4ec 100%);
  border-radius: var(--radius);
}
.job-detail__company {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-sub);
}
.job-detail__title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  margin: 6px 0 16px;
}
.job-detail__keyfacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.job-detail__keyfacts div {
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
}
.job-detail__keyfacts dt {
  font-size: 12px;
  color: var(--pink-dark);
  font-weight: 700;
}
.job-detail__keyfacts dd {
  margin: 0;
  font-weight: 700;
}
.job-detail__header .job-card__features { margin-top: 16px; }
.job-detail__cta {
  display: block;
  max-width: 400px;
  margin: 24px auto 0;
}

.job-section { margin-bottom: 40px; }
.job-section__title {
  font-size: 20px;
  font-weight: 700;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: var(--pink-pale);
  border-left: 6px solid var(--pink);
  border-radius: 0 8px 8px 0;
}
.job-section__text {
  line-height: 2;
  word-break: break-word;
}
.job-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.job-table th,
.job-table td {
  border: 1px solid #eee;
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
  word-break: break-word;
}
.job-table th {
  width: 28%;
  background: #fff8fa;
  font-weight: 700;
  color: var(--pink-dark);
}
.job-detail__note {
  font-size: 12px;
  line-height: 1.8;
  color: var(--c-sub);
  margin-bottom: 40px;
}

/* ---------- consult form ---------- */
.job-consult {
  scroll-margin-top: 90px;
  padding: 32px;
  background: #fff;
  border: 2px solid var(--pink);
  border-radius: var(--radius);
}
.job-consult__title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: var(--pink-dark);
}
.job-consult__lead {
  margin: 10px 0 24px;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}
.job-field { margin-bottom: 18px; }
.job-field > label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.job-req, .job-opt {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
  color: #fff;
  background: var(--pink);
  vertical-align: 2px;
}
.job-opt { background: #aaa; }
.job-form input[type=text],
.job-form input[type=tel],
.job-form input[type=email],
.job-form select,
.job-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--c-text);
  background: #fcfcfc;
  border: 1px solid #ddd;
  border-radius: 8px;
  -webkit-appearance: auto;
  appearance: auto;
}
.job-form textarea { resize: vertical; }
.job-form input:focus,
.job-form select:focus,
.job-form textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-pale);
}
.job-form .is-invalid { border-color: #d6336c !important; }
.job-error { display: block; margin-top: 6px; font-size: 13px; color: #d6336c; }
.job-consent { text-align: center; margin: 22px 0; }
.job-consent label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.job-consent input {
  -webkit-appearance: auto;
  appearance: auto;
  width: 18px;
  height: 18px;
  accent-color: var(--pink);
}
.job-consent a { color: var(--pink-dark); text-decoration: underline; }
.job-submit { text-align: center; }
.job-submit .job-btn { min-width: 300px; }
.job-message { display: none; margin-top: 16px; padding: 12px 16px; border-radius: 8px; font-size: 14px; }
.job-message.is-error { display: block; background: #fff0f3; color: #c2255c; }

/* ---------- sticky CTA (mobile) ---------- */
.job-sticky { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .job-search__row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .job-search { padding: 18px 16px; }
  .job-search__row { grid-template-columns: 1fr; gap: 12px; }
  .job-search__actions { flex-direction: column; gap: 12px; }
  .job-search__actions .job-btn { width: 100%; }

  .job-card__link { padding: 18px 16px; }
  .job-card__title { font-size: 17px; }

  .job-detail__header { padding: 20px 16px; }
  .job-detail__title { font-size: 21px; }
  .job-detail__keyfacts { grid-template-columns: 1fr; }

  .job-table th, .job-table td { display: block; width: 100%; border-top: 0; }
  .job-table tr:first-child th { border-top: 1px solid #eee; }
  .job-table th { padding: 10px 14px; }

  .job-consult { padding: 24px 16px; }
  .job-submit .job-btn { min-width: 0; width: 100%; }

  .single-job .job-sticky {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
  }
  .single-job .job-sticky .job-btn { display: block; padding: 14px; }
  .single-job .site-footer { padding-bottom: 76px; }
}
