* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: #222;
  background: #f5f6f8;
  line-height: 1.7;
}
a { color: #1a5fd0; }
.container { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.site-header { background: #fff; border-bottom: 1px solid #e3e5e8; padding: 14px 0; margin-bottom: 24px; }
.logo { font-weight: bold; font-size: 1.2rem; color: #222; text-decoration: none; }
.site-footer { color: #888; font-size: .85rem; padding: 32px 0; text-align: center; }

.card { background: #fff; border: 1px solid #e3e5e8; border-radius: 8px; padding: 20px 24px; margin-bottom: 16px; }
.card.center { text-align: center; }
h1 { font-size: 1.5rem; margin-top: 0; }
h2 { font-size: 1.15rem; }
.meta { color: #666; font-size: .9rem; }
.tag { display: inline-block; background: #e8f0fe; color: #1a5fd0; border-radius: 4px; padding: 0 8px; margin-right: 6px; font-size: .8rem; }
.salary { font-weight: bold; }

.search { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.search input { flex: 1; min-width: 200px; }
input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid #ccd0d5; border-radius: 6px; }
button, .button {
  display: inline-block; font: inherit; background: #1a5fd0; color: #fff; border: 0;
  border-radius: 6px; padding: 8px 20px; cursor: pointer; text-decoration: none;
}
button:hover, .button:hover { background: #154ca6; }

.job-list { list-style: none; padding: 0; margin: 0; }
.job-list a { color: inherit; text-decoration: none; display: block; }
.job-list .card:hover { border-color: #1a5fd0; }
.job-list h2 { margin: 0 0 4px; color: #1a5fd0; }
.empty { color: #666; }

.summary { display: grid; grid-template-columns: 6em 1fr; margin: 0 0 16px; }
.summary dt, .summary dd { margin: 0; padding: 8px 4px; border-bottom: 1px solid #e3e5e8; }
.summary dt { color: #666; font-weight: bold; }
.actions { text-align: center; margin-top: 24px; }
.apply-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.apply-buttons .button { min-width: 180px; padding: 12px 24px; font-weight: bold; }
.button.phone { background: #fff; color: #1a5fd0; border: 2px solid #1a5fd0; }
.button.phone:hover { background: #f2f5fb; }

.inquiry-link { margin: 20px 0 12px; }
.inquiry-link .meta { margin: 0 0 6px; }
.button.inquiry { background: #fff; color: #333; border: 2px solid #333; border-radius: 999px; font-weight: bold; padding: 10px 32px; }
.button.inquiry:hover { background: #f2f3f5; }
.apply-form .field { margin-bottom: 16px; }
.apply-form label { display: block; font-weight: bold; margin-bottom: 4px; }
.apply-form input[type=text], .apply-form input[type=email], .apply-form textarea { width: 100%; }
.apply-form small { display: block; color: #666; }
.required { background: #d93025; color: #fff; font-size: .7rem; border-radius: 3px; padding: 0 5px; margin-left: 6px; font-weight: normal; }
.errorlist { color: #d93025; list-style: none; padding: 0; margin: 4px 0 0; font-size: .9rem; }
.has-error input, .has-error textarea { border-color: #d93025; }

.apply-form .choices { display: flex; gap: 20px; flex-wrap: wrap; }
.apply-form .choices label { font-weight: normal; display: flex; align-items: center; gap: 6px; margin: 0; }
.apply-form input[type=number] { width: 8em; }

.store-hero-wrap { position: relative; }
.store-hero-wrap .preview-badge { position: absolute; top: 8px; left: 8px; }
.store-hero { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 8px; margin-bottom: 16px; }
@media (max-width: 600px) { .store-hero { aspect-ratio: 16 / 9; } .store-hero.has-sp { aspect-ratio: auto; height: auto; } }
.message-card { border-left: 4px solid #F5B800; }
.message-card .speaker { font-weight: bold; margin: 0 0 4px; }
.message-section { margin-top: 24px; }
.message-body { display: flex; gap: 20px; align-items: flex-start; }
.message-photo { width: 160px; height: 160px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
@media (max-width: 600px) {
  .message-body { flex-direction: column; }
  .message-photo { width: 100%; height: auto; max-height: 320px; }
}

/* 公開ページ（求職者向け）の背景色 */
.public { background: #fff; }

/* 「募集中の求人」などの見出し */
.section-heading { background: #E70015; color: #fff; padding: 8px 14px; border-radius: 4px; }

/* 店舗ページの求人カード（左に画像、右に職種・給与・勤務地と応募ボタン） */
.job-list .job-card { border: 3px solid #E70015; border-radius: 4px; padding: 0; }
.job-list .job-card-link { display: flex; gap: 20px; align-items: flex-start; padding: 20px; }
.job-list .job-card:hover { border-color: #E70015; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.job-card-photo { width: 200px; height: 140px; object-fit: cover; flex-shrink: 0; }
.job-card-main { flex: 1; min-width: 0; }
.job-list .job-card h2 { margin: 0 0 6px; font-size: 1.25rem; color: #222; }
.job-card p { margin: 4px 0; }
.job-card .tag, .job-detail .tag { background: #fff; color: #E70015; border: 1px solid #E70015; }
.job-card-info { display: grid; grid-template-columns: auto 1fr; gap: 2px 4px; margin: 6px 0 0; }
.job-card-info dt { color: #666; font-weight: bold; }
.job-card-info dd { margin: 0; }
.job-card-more { text-align: right; border-top: 2px dotted #ccc; margin-top: 12px; padding-top: 12px; }
.job-card-more .button { background: #E70015; color: #fff; border-radius: 0; font-weight: bold; min-width: 150px; text-align: center; padding: 10px 16px; }
.job-card:hover .job-card-more .button { background: #c40012; }
.apply-buttons .button { background: #E70015; color: #fff; border-radius: 0; font-weight: bold; min-width: 150px; text-align: center; padding: 10px 16px; }
.apply-buttons .button:hover { background: #c40012; }
.apply-buttons .button.phone { background: #fff; color: #E70015; border: 2px solid #E70015; padding: 8px 14px; }
.apply-buttons .button.phone:hover { background: #fdecee; }
.apply-buttons .button { min-width: 180px; padding: 12px 24px; }
.apply-buttons .button.phone { padding: 10px 22px; }
@media (max-width: 600px) {
  /* 縦並びのときは、写真・本文とも横幅いっぱいにする（タグがなく本文が短いカードも、ほかのカードと同じ幅になるように） */
  .job-list .job-card-link { flex-direction: column; align-items: stretch; }
  .job-card-main { flex: none; width: 100%; }
  .job-card-photo { width: 100%; height: 180px; }
}

/* 管理者向けの求人プレビュー */
.preview-bar { background: #fff8e1; border: 2px solid #f0b400; border-radius: 6px; padding: 12px 16px; margin-bottom: 24px; }
.preview-bar p { margin: 0 0 8px; }
.preview-bar strong:first-child { background: #f0b400; color: #fff; border-radius: 4px; padding: 0 8px; margin-right: 6px; }
.preview-message { font-weight: bold; }
.preview-badge { display: inline-block; background: #666; color: #fff; font-size: .75rem; font-weight: bold; border-radius: 4px; padding: 0 8px; margin-right: 8px; vertical-align: middle; }
.preview-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.preview-actions form { margin: 0; }
.button.secondary, button.secondary { background: #fff; color: #333; border: 1px solid #ccd0d5; }
.button.secondary:hover, button.secondary:hover { background: #f2f3f5; }

/* 「〜へ戻る」のリンク */
.back-link { color: #333; }
.back-link:hover { color: #000; }

/* 応募フォームの「応募する」ボタン */
.apply-submit { background: #E70015; font-weight: bold; border-radius: 0; min-width: 180px; padding: 12px 24px; }
.apply-submit:hover { background: #c40012; }
.apply-submit:disabled { background: #ccc; cursor: not-allowed; }
.agree-field { text-align: center; margin-top: 24px; }
.agree-field small { display: block; color: #666; }
.apply-submit { line-height: 1.5; }
.apply-submit-sub { font-size: .8rem; }
.apply-submit-main { font-size: 1.25rem; }
.apply-submit-area { text-align: center; margin-top: 24px; }
.confirm-list { display: grid; grid-template-columns: 9em 1fr; margin: 16px 0; border-top: 1px solid #e3e5e8; }
.confirm-list dt, .confirm-list dd { margin: 0; padding: 10px 8px; border-bottom: 1px solid #e3e5e8; }
.confirm-list dt { color: #666; font-weight: bold; }
@media (max-width: 600px) { .confirm-list { grid-template-columns: 1fr; } .confirm-list dt { border-bottom: 0; padding-bottom: 0; } }
.confirm-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 24px; }
.confirm-actions .secondary { border-radius: 0; min-width: 140px; padding: 12px 24px; }

/* 個人情報保護方針 */
.policy h2 { font-size: 1.05rem; margin: 28px 0 8px; padding-left: 10px; border-left: 4px solid #E70015; }
.policy-contact { background: #f5f6f8; border-radius: 6px; padding: 12px 16px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: #666; }
