:root {
  --bg: #fbfaf7;
  --card: #ffffff;
  --ink: #2b2a27;
  --muted: #6b6860;
  --line: #e6e2d9;
  --accent: #2f7d5b;
  --accent-ink: #ffffff;
  --accent-soft: #e7f3ec;
  --warm: #f6efe2;
  --svc: #2f6f9e;
  --city: #8a5a2b;
  --emp: #7a4e9a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.75; font-size: 16px;
}
a { color: var(--accent); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.site-head { background: var(--card); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.site-head a.brand { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.site-head img { height: 36px; }
.site-head .tel { font-size: 14px; color: var(--muted); text-align: right; }
.hero { background: var(--warm); padding: 40px 0 32px; }
.hero h1 { margin: 0 0 8px; font-size: clamp(22px, 5vw, 32px); line-height: 1.4; }
.hero p { margin: 0; color: var(--muted); }
.hero .eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .08em; font-size: 14px; margin-bottom: 8px; }
.hero h1 { line-height: 1.5; }
.hero .lead { color: var(--ink); max-width: 46em; margin-top: 12px; }
.points { padding: 28px 0 4px; }
.sec-title { font-size: 20px; margin: 8px 0 14px; padding-left: 10px; border-left: 4px solid var(--accent); line-height: 1.4; }
.point-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 28px; }
.point { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; position: relative; }
.point .num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; }
.point h3 { font-size: 17px; margin: 8px 0 6px; line-height: 1.45; }
.point p, .job-type p { margin: 0; font-size: 15px; color: var(--muted); }
.job-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 18px; }
.job-type { background: var(--accent-soft); border-radius: 10px; padding: 14px 16px; }
.job-type h3 { font-size: 16px; margin: 0 0 4px; color: var(--accent); }
.closing { font-weight: 700; margin: 8px 0 6px; }
.more { margin: 0 0 8px; font-size: 14px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.filters select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); min-width: 0; flex: 1 1 180px; }
.count { color: var(--muted); font-size: 14px; margin: 8px 0 16px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 48px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.card h2 { font-size: 18px; margin: 4px 0 0; line-height: 1.45; }
.card .salary { font-weight: 700; color: var(--accent); }
.card .meta { font-size: 14px; color: var(--muted); }
.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: 12px; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 12px; padding: 2px 8px; border-radius: 999px; color: #fff; font-weight: 600; }
.badge.svc { background: var(--svc); } .badge.city { background: var(--city); } .badge.emp { background: var(--emp); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 20px 0; }
.gallery figure { margin: 0; }
.gallery figure.main { grid-column: 1 / -1; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--line); }
.gallery figure.main img { aspect-ratio: 16 / 9; }
.gallery figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.card .thumb { display: block; width: calc(100% + 36px); margin: -18px -18px 8px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px 12px 0 0; background: var(--line); }
.crumb { font-size: 14px; margin: 16px 0; }
.sheet { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin-bottom: 40px; }
.sheet-head h1 { font-size: clamp(22px, 5vw, 28px); margin: 10px 0 4px; line-height: 1.4; }
.sheet-head .salary { font-size: 20px; font-weight: 700; color: var(--accent); margin: 0; }
.sheet-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.office-logo { flex: none; height: 64px; width: auto; max-width: 200px; object-fit: contain; border-radius: 6px; }
@media (max-width: 600px) { .office-logo { height: 48px; max-width: 150px; } }
@media print { .office-logo { height: 44px; } }
.message { background: var(--warm); border-radius: 8px; padding: 12px 16px; margin: 20px 0; }
.sheet-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.sheet-table th, .sheet-table td { border-top: 1px solid var(--line); padding: 12px 8px; vertical-align: top; text-align: left; }
.sheet-table th { width: 8.5em; color: var(--muted); font-weight: 600; white-space: nowrap; }
.muted { color: var(--muted); font-size: 14px; }
.map { margin-top: 24px; }
.map h2 { margin: 0 0 4px; font-size: 20px; }
.map p { margin: 0 0 10px; }
.map-frame { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--line); margin-bottom: 10px; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.map .btn { flex: 0 1 auto; display: inline-block; }
.apply { background: var(--accent-soft); border-radius: 12px; padding: 20px; margin-top: 24px; }
.apply h2 { margin: 0 0 4px; font-size: 20px; }
.apply p { margin: 0 0 12px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { flex: 1 1 200px; text-align: center; display: inline-block; padding: 12px 16px; border-radius: 10px; border: 2px solid var(--accent); background: var(--card); color: var(--accent); font-weight: 700; text-decoration: none; line-height: 1.4; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn small { font-weight: 400; font-size: 12px; }
.org { font-size: 13px; color: var(--muted); margin-top: 20px; }
.tools { display: flex; gap: 8px; justify-content: flex-end; margin: -24px 0 40px; }
.tools button { font: inherit; font-size: 14px; padding: 6px 12px; border: 1px solid var(--line); background: var(--card); border-radius: 8px; cursor: pointer; }
.mailform { margin-top: 20px; padding-top: 16px; border-top: 1px dashed #b9d6c6; }
.mailform h3 { margin: 0 0 4px; font-size: 18px; }
.mailform label { display: block; font-size: 14px; font-weight: 700; margin: 14px 0 4px; }
.mailform .req { white-space: nowrap; font-size: 11px; color: #fff; background: #c0392b; border-radius: 4px; padding: 1px 6px; margin-left: 6px; font-weight: 700; vertical-align: 1px; }
.mailform input, .mailform select, .mailform textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px; border: 1px solid #cfcac0; border-radius: 8px; background: #fff; }
.mailform .bring { margin: 0 0 8px; font-size: 14px; }
.mailform .mf-place { padding: 10px 12px; border-radius: 8px; background: #f3f1ec; font-weight: 700; line-height: 1.5; }
.mailform .mf-place .muted { font-weight: 400; }
.mailform .cand { display: grid; grid-template-columns: 7.5em minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; align-items: center; margin-bottom: 8px; }
.mailform .cand-label { font-size: 14px; font-weight: 700; white-space: nowrap; }
.mailform .invalid { border-color: #c0392b; background: #fdecea; }
.mailform .mf-error { color: #a12a1b; background: #fdecea; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 12px 0 0; }
.mailform button.btn { margin-top: 14px; width: 100%; font: inherit; font-weight: 700; cursor: pointer; }
.mf-fallback { margin-top: 12px; font-size: 14px; }
.inq { margin-top: 18px; border-top: 1px dashed #b9d6c6; padding-top: 14px; }
.inq > summary { cursor: pointer; font-weight: 700; color: var(--accent); font-size: 16px; padding: 6px 0; }
.inq .inqform { border-top: 0; margin-top: 6px; padding-top: 0; }
.iq-types { display: flex; flex-wrap: wrap; gap: 8px; }
.iq-types label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; border: 1px solid #cfcac0; border-radius: 999px; padding: 6px 14px; background: #fff; cursor: pointer; }
.iq-types input { width: auto; }
.inquiry-top { background: var(--accent-soft); border-radius: 12px; padding: 20px; margin: 8px 0 40px; }
.inquiry-top h2 { margin: 0 0 4px; font-size: 20px; }
.inquiry-top .inq { border-top: 0; margin-top: 0; padding-top: 0; }
.mf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mf-done { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: #fff; border: 2px solid var(--accent); line-height: 1.7; }
.mf-fallback textarea { font-size: 13px; }
@media (max-width: 600px) { .mailform .cand { grid-template-columns: 1fr 1fr; } .mailform .cand-label { grid-column: 1 / -1; } }
.print-only { display: none; }
.site-foot { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 13px; color: var(--muted); }

@media (max-width: 600px) {
  .sheet { padding: 16px; }
  .sheet-table th, .sheet-table td { display: block; width: auto; }
  .sheet-table th { border-top: 1px solid var(--line); padding-bottom: 0; }
  .sheet-table td { border-top: 0; padding-top: 4px; }
  .site-head .tel { display: none; }
}

/* 印刷（A4 求人票として紙で掲示・配布できるように） */
@media print {
  @page { size: A4; margin: 10mm 12mm; }
  body { background: #fff; font-size: 9.5pt; line-height: 1.38; }
  .sheet-head h1 { font-size: 18pt; margin: 6px 0 2px; }
  .sheet-head .salary { font-size: 13pt; }
  .message { margin: 8px 0; padding: 6px 10px; }
  .sheet-table { margin: 8px 0; }
  .apply, .sheet-table tr { break-inside: avoid; }
  .apply h2 { font-size: 12pt; }
  .apply p { margin: 0; }
  .org { margin-top: 6px; }
  .site-head, .site-foot, .crumb, .tools, .no-print { display: none !important; }
  .print-only { display: block; }
  .sheet { border: 0; padding: 0; margin: 0; }
  .sheet-table th, .sheet-table td { padding: 2px 6px; border: 1px solid #999; }
  .badge { color: #000; border: 1px solid #000; background: none !important; }
  .apply { background: none; border: 1px solid #000; padding: 8px 12px; }
  .message { background: none; border: 1px solid #ccc; }
}
