:root {
  --bg: #f7f5f0;
  --text: #1a1a1a;
  --border: rgba(0, 0, 0, 0.1);
}

body {
  font-family: sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
}

a {
  color: #666;
  text-decoration: none;
}

/* Header */
header {
  position: sticky;
  background: var(--bg);
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 52px;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-size: 36px;
  font-weight: 600;
}

header a span {
  font-size: 18px;
  font-weight: 600;
}

header nav {
  margin: 0 auto;
  display: flex;
  gap: 28px;
}

/* Top */
.top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}
 
.top-left {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
 
.top-right {
  padding: 40px 24px 40px 0px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-btns {
  display: flex;
  gap: 16px;
}

.hero-btns a {
  padding: 8px 20px;
  border: 0.5px solid var(--border);
  border-radius: 4px;
  font-size: 22px;
}

.hero-btns a:first-child {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.hero-features {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.hero-features span {
  background: #f0ede8;;
  padding: 14px 20px;
  font-size: 16px;
}

.news-box {
  border: 0.5px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
 
.news-label {
  font-size: 18px;
  margin-bottom: 12px;
}
 
.news-item {
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border);
  font-size: 16px;
  gap: 10px;
}
 
.news-item:last-child {
  border-bottom: none;
}

.news-item .news-title {
  text-decoration: underline;
}

.news-item a {
  color: var(--text);
  text-decoration: none;
  display: block;
}

.news-item .news-content {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* パンくずリスト */
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 16px;
  padding: 12px 0;
}

.breadcrumb a::after {
  content: '>';
  margin-left: 8px;
  color: var(--text);
}


/* ページネーション */
.pagination ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  gap: 4px;
}

.pagination li a,
.pagination li span {
  display: block;
  padding: 6px 12px;
  border: 0.5px solid var(--border);
  font-size: 14px;
}

.pagination li.active span {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* form */
.required {
  color: red;
  font-size: 12px;
  margin-left: 4px;
}

/* Job List */
.job-list-wrap,
.job-detail-wrap,
.login-wrap,
.mypage-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px;
}
 
.search-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 0.5px solid var(--border);
  margin-bottom: 32px;
}

.search-field textarea {
  padding: 8px 12px;
  border: 0.5px solid var(--border);
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
}
 
.search-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
 
.search-form input[type=text],
.search-form select,
.search-field input[type=text],
.search-field input[type=password],
.search-field select {
  padding: 8px 12px;
  border: 0.5px solid var(--border);
  background: #fff;
  font-size: 14px;
}
 
.search-form input[type=text] {
  flex: 1;
}
 
.search-features {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
 
.search-btns {
  display: flex;
  gap: 8px;
}
 
.search-btns input[type=reset],
.search-btns button {
  padding: 8px 20px;
  font-size: 14px;
  border: 0.5px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  /* input と button のデフォルトを揃える */
  font-family: inherit;
  line-height: normal;
  appearance: none;
}
 
.search-meta {
  font-size: 13px;
  margin-bottom: 16px;
}
 
.job-card {
  padding: 20px 0;
  border-bottom: 0.5px solid var(--border);
}

.job-card a {
  color: var(--text);
}

.job-card-btn {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  border: 0.5px solid var(--border);
  background: var(--bg);
}

.job-card:first-of-type {
  border-top: 0.5px solid var(--border);
}

.job-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.job-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
 
.job-tag {
  font-size: 12px;
  padding: 3px 10px;
  background: #eeece7;
}

/* Job Detail */
.detail-image {
  width: 100%;
  margin-bottom: 24px;
}

.detail-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.detail-table tr {
  border-bottom: 0.5px solid var(--border);
}

.detail-table tr:first-child {
  border-top: 0.5px solid var(--border);
}

.detail-table th {
  width: 140px;
  padding: 14px 0;
  font-size: 13px;
  font-weight: 500;
  color: #888;
  text-align: left;
  vertical-align: top;
}

.detail-table td {
  padding: 14px 0;
  font-size: 14px;
}

.detail-section {
  margin: 32px 0;
}

.detail-section span {
  display: block;
  margin-bottom: 8px;
}

.detail-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 0.5px solid var(--border);
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 0.5px solid var(--border);
}

.detail-actions a {
  padding: 10px 24px;
  border: 0.5px solid var(--border);
  background: var(--bg);
  font-size: 14px;
}

.detail-actions > a:first-child {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.detail-actions .btn-black {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.keep_btn {
  display: flex;
  align-items: center;
}

.keep_btn a {
  padding: 10px 24px;
  border: 0.5px solid var(--border);
  background: var(--bg);
  font-size: 14px;
}

.keep_btn[data-keep_check="false"] a {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.review-card,
.keep-card {
  margin-bottom: 20px;
}

.review-title {
  text-decoration: underline;
}

/* Login */
.login-btn {
  padding: 8px 20px;
  margin: 16px 0;
  font-size: 14px;
  border: 0.5px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-family: inherit;
  appearance: none;
}

.login-wrap form {
  max-width: 400px;
}

/* Mypage */
.mypage-wrap .detail-actions {
  border-top: none;
}

.mypage-wrap .detail-section a {
  display: block;
  margin-bottom: 8px;
}

.mypage-wrap form {
  max-width: 400px;
}

/* Footer */
footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  gap: 20px;
}