/*************************************************
  OM Jobs (Left Sidebar + Right 1-Column List)
  scope: .om-wrap
  dark mode: none
**************************************************/
.om-wrap{
  /* theme tokens */
  --om-font: "Noto Sans JP","Hiragino Kaku Gothic ProN",Meiryo,ui-sans-serif,system-ui,Arial,sans-serif;
  --om-text: #1a1a1a;
  --om-text-sub: #6b7280;     /* slate-500 */
  --om-line: #e5e7eb;         /* slate-200 */
  --om-chip: #f3f4f6;         /* slate-100 */
  --om-bg: #fff;
  --om-page: #fafafa;
  --om-accent: #111827;       /* slate-900 */
  --om-accent-weak: #4b5563;  /* slate-600 */
  --om-radius: 14px;
  --om-gap: 18px;
  --om-shadow: 0 6px 24px rgba(0,0,0,.06);

  font-family: var(--om-font);
  color: var(--om-text);
  background: transparent;
}
.om-wrap *{ box-sizing: border-box; font-size:16px; }
.om-wrap img{ max-width:100%; height:auto; display:block; }
.om-wrap [hidden]{ display:none !important; }
.om-wrap :where(a,button,input,select,textarea):focus-visible{
  outline:2px solid rgba(17,24,39,.35); outline-offset:2px; border-radius:8px;
}

/* ===== Layout: left sidebar + right main ===== */
.om-layout{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: var(--om-gap);
  align-items:start;
}
@media (max-width: 650px){
  .om-layout{ grid-template-columns: 1fr; }
}

/* Sidebar */
.om-sidebar{ position: relative; }
@media (min-width: 649.98px){
  .om-sidebar{ position: sticky; top: 16px; }
}

/* ===== Search form ===== */
.om-forms{
  background: var(--om-bg);
  border: 1px solid var(--om-line);
  border-radius: var(--om-radius);
  padding: 16px;
  box-shadow: var(--om-shadow);
}
.om-form-row{ margin:0 0 12px; }
.om-form-row:last-child{ margin-bottom:0; }
.om-label{
  display:block; margin:0 0 6px;
  font-size: 13px; color: var(--om-text-sub);
}
.om-select,
.om-input-like input[type="text"]{
  width:100%;
  border:1px solid var(--om-line);
  background:#fff; color:var(--om-text);
  border-radius: 999px;
  padding:10px 14px; font-size:14px;
}
.om-select option[aria-disabled="true"], .om-select option[disabled]{ color:#9ca3af; }

/* Hiring system (checkbox pills) */
.om-checks{ display:flex; flex-wrap:wrap; gap:8px; }
.om-checks label{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px;
  border:1px solid var(--om-line);
  border-radius:999px;
  background:#fff; color:var(--om-text);
  font-size:14px; cursor:pointer; position:relative;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
/* visually hide native box but keep accessible */
.om-checks input[type="checkbox"]{
  position:absolute !important; opacity:0 !important; pointer-events:none !important;
}
/* modern: :has */
.om-checks label:has(input[type="checkbox"]:checked){
  background: var(--om-accent); color:#fff; border-color: var(--om-accent);
  box-shadow: 0 0 0 2px rgba(17,24,39,.10) inset;
}
.om-checks label:has(input[type="checkbox"]:checked)::after{
  content:"✓"; font-size:12px; line-height:1; margin-left:2px; opacity:.95;
}
/* fallback (JSで .is-checked を付ける運用もOK) */
.om-checks input[type="checkbox"]:checked + span{ color:#fff; }
.om-checks label.is-checked{ background: var(--om-accent); color:#fff; border-color: var(--om-accent); }
.om-checks label.is-checked::after{ content:"✓"; font-size:12px; margin-left:2px; opacity:.95; }

/* submit */
.om-form-submit{ text-align:right; }
.om-form-submit :where(button, a, input[type="submit"]){
  appearance:none; cursor:pointer;
  width:100%; /* PCでも押しやすい */
  background:#111; color:#fff;
  border:1px solid #111; border-radius:999px;
  padding:10px 16px; font-size:14px;
}

/* ===== Main ===== */
.om-main{ min-width:0; }

/* result meta */
.om-result{
  margin: 0 0 10px;
  color: var(--om-text-sub); font-size: 13px;
  display:flex; gap:12px; flex-wrap:wrap;
}
.om-result-line{ margin:0; }

/* list: ALWAYS 1 column */
.om-list{ display:grid; gap: var(--om-gap); grid-template-columns: 1fr; }

/* ===== Card ===== */
.om-card{
  background: var(--om-bg);
  border: 1px solid var(--om-line);
  border-radius: var(--om-radius);
  box-shadow: var(--om-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  overflow: clip;
}
.om-card:hover{ transform: translateY(-2px); box-shadow: 0 10px 34px rgba(0,0,0,.08); }

.om-card__ttl-link{ display:block; color:inherit; text-decoration:none; }
.om-card__ttl{
  margin:0; padding: 18px 18px 8px;
  font-size: clamp(16px, 1.05rem, 18px);
  line-height: 1.45; font-weight: 700; letter-spacing:.01em;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}

/* meta: thumb + tags */
.om-card__meta{
  display:grid; grid-template-columns: 120px 1fr;
  gap: 14px; align-items:start; padding: 0 18px 6px;
}
@media (max-width: 479.98px){ .om-card__meta{ grid-template-columns: 1fr; } }
.om-card__thumb img{
  width:120px; 
  /*aspect-ratio:4/3; */
  object-fit:cover;
  border-radius: 12px; border:1px solid var(--om-line);
  background: linear-gradient(180deg,#f3f4f6,#e5e7eb); /* placeholder */
}
.om-card__tags{ list-style:none; margin:0 0 10px; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.om-tag{
  font-size:12px; color:var(--om-accent-weak);
  background: var(--om-chip);
  border:1px solid var(--om-line);
  border-radius:999px; padding:6px 10px; line-height:1;
}
.om-tag.-hire{ color: var(--om-accent); font-weight:700; }
.om-job-label-beginner{
  font-size:12px;
  border-radius:999px; padding:6px 10px; line-height:1;
  border:1px solid #b7e9c4; background:#ecfdf5; color:#065f46;
  font-weight:600; text-align:center;
}

/* details (dl) */
.om-card__dl{
  display:grid;
  grid-template-columns: 120px 1fr;
  column-gap: 14px; row-gap: 10px;
  padding: 12px 18px 18px;
  border-top: 1px solid var(--om-line);
  /* ↓ ボタンが線に密着しないよう、ここで下線と余白を確保 */
  border-bottom: 1px solid var(--om-line);
  padding-bottom: 16px;
  font-size: 14px;
}
@media (max-width: 479.98px){ .om-card__dl{ grid-template-columns: 1fr; } }
.om-card__dl dt{ color:var(--om-text-sub); font-weight:600; margin:0; }
.om-card__dl dd{ margin:0; color:var(--om-text); word-break: break-word; }
.om-card__salary{ font-variant-numeric: tabular-nums; }
.om-card__dl [data-job-job_description]{
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
  color: var(--om-text-sub);
}

/* Beginner label (full width, across both columns) */
.om-card__dl [data-job-beginner]{ grid-column: 1 / -1; margin-top: 12px; }
.om-card__dl [data-job-beginner] .om-job-label-beginner{
  display:block; width:100%;
  padding:12px 14px; border-radius:12px;
  border:1px solid #b7e9c4; background:#ecfdf5; color:#065f46;
  font-weight:600; text-align:center;
}

/* footer / CTA */
.om-card__foot{
  padding: 16px 18px 18px;   /* 上に余白追加で密着回避 */
  border-top: none;          /* 上のラインは dl 側に任せる */
  text-align:right;
}
.om-btn{
  display:inline-flex; align-items:center; gap:8px;
  text-decoration:none; cursor:pointer;
  background:#111; color:#fff;
  border:1px solid #111; border-radius:999px;
  padding:10px 16px; font-size:14px;
  transition: transform .12s ease, opacity .12s ease;
}
.om-btn:hover{ opacity:.9; }
.om-btn:active{ transform: translateY(1px); }

/* pager */
.om-pager-wrap{ margin-top: var(--om-gap); }
.om-pager{ list-style:none; margin:0; padding:0; display:flex; gap:8px; flex-wrap:wrap; justify-content:center; }
.om-pager li{
  min-width:40px; height:40px; padding:0 12px;
  display:grid; place-items:center;
  border:1px solid var(--om-line);
  border-radius:999px; background:#fff;
  font-size:14px; color:#111; user-select:none; cursor:pointer;
}
.om-pager li[data-jobs-page-status="current"]{
  background:#111; color:#fff; border-color:#111; cursor:default;
}

/* reset collisions from host pages */
.om-wrap :where(.row,.container,.section){ all: revert; }

.om-empty{
  width:calc((1000px - var(--om-gap) - 32px));
}
@media (max-width: 650px){
  .om-empty{
    width:100%;
  }
}