.jobapp-container {
  --c-border: #e5e7eb;
  --c-muted: #6b7280;
  --c-tag: #f3f4f6;
  --c-accent: #111827;
}
.jobapp {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto,
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}
.jobapp-filters {
  margin: 1rem 0 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--c-border);
  border-radius: 0.75rem;
  background: #fff;
}
.filter-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}
.branch-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  background: #fff;
}
.branch-chip input {
  accent-color: var(--c-accent);
}
.filter-hint {
  color: var(--c-muted);
  margin-top: 0.5rem;
}

.jobapp-tablewrap {
  display: block;
  overflow: auto;
  margin-top: 1rem;
  margin-bottom: 4rem;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 0.5rem;
}
.jobapp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.jobapp-table th,
.jobapp-table td {
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
  padding: 0.6rem 0.6rem;
}

.jobapp-table thead {
  display: none;
}

.jobapp-table tbody {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* 求人カード間の余白 */
}

.jobapp-table tr {
  display: block;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.jobapp-table th {
  background: #fafafa;
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
}

.jobapp-table td {
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0;
  border: none;
}

.jobapp-table td::before {
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.25rem;
}

.jobapp-table td:nth-child(1)::before {
  content: "職種";
}
.jobapp-table td:nth-child(2)::before {
  content: "勤務地";
}
.jobapp-table td:nth-child(3)::before {
  content: "給与";
}
.jobapp-table td:nth-child(4)::before {
  content: "仕事内容";
}
.jobapp-table td:nth-child(5)::before {
  content: "勤務時間";
}
.jobapp-table td:nth-child(6)::before {
  content: "応募資格";
}
.jobapp-table td:nth-child(7)::before {
  content: "待遇";
}
.jobapp-table td:nth-child(8)::before {
  content: "休日休暇";
}

.cell-main {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #1e293b;
}
.cell-note {
  color: #000;
  font-size: 1rem;
  margin-top: 0.25rem;
  white-space: pre-wrap;
  line-height: 1.5;
}
.cell-pre {
  white-space: pre-wrap;
  line-height: 1.5;
  color: #1e293b;
}
.cell-branches .tag {
  display: inline-block;
  background: var(--c-tag);
  padding: 0.15rem 0.4rem;
  margin: 0.15rem 0.25rem 0.15rem 0;
  border-radius: 0.4rem;
  font-size: 12px;
}
.btn-map {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--c-border);
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
  color: #000;
  border-radius: 0.4rem;
}
.btn-map:hover {
  background: #f9fafb;
}
.map-embed {
  margin-top: 0.5rem;
}
.noresult {
  margin: 1rem 0;
  color: var(--c-muted);
}

.cell-branches {
  margin-top: 0.3rem;
}
.cell-branches .tag {
  display: inline-block;
  background: #e2e8f0;
  color: #475569;
  padding: 0.2rem 0.5rem;
  border-radius: 0.4rem;
  font-size: 0.85rem;
  margin-right: 0.25rem;
}

.jobapp .btn-primary {
  padding: 0.45rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.jobapp .btn-primary:hover {
  opacity: 0.9;
}
.jobapp .btn-ghost {
  padding: 0.45rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  cursor: pointer;
}
.jobapp .btn-ghost:hover {
  background: #f8fafc;
}

#job-search-app .map-embed {
  margin-top: 0.75rem;
  width: 100%;
  position: relative;
  padding-top: 56.25%; /* 16:9比率を維持 */
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#job-search-app .map-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Job Gallery --- */
.job-gallery {
  margin: 0.75rem auto;
}

.job-hero {
  width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.job-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.job-thumb-list {
  display: inline-table;
  gap: 0.5rem;
  margin-top: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.job-thumb {
  border: 1px solid var(--c-border);
  background: #fff;
  padding: 0;
  border-radius: 0.5rem;
  cursor: pointer;
  flex: 0 0 auto;
  outline: none;
}
.job-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.45rem;
}

.job-thumb.is-active {
  box-shadow: 0 0 0 2px #2563eb inset;
  border-color: #2563eb;
}

@media (max-width: 960px) {
  .jobapp-table th,
  .jobapp-table td {
    font-size: 13px;
  }
}
