/* OkaSyo 中途採用サイト（テスト環境）  値は design.md §2 に従う */
:root {
  --c-text: #1a1a1a;
  --c-navy: #1b2a6b;
  --c-navy-dk: #111c4d;
  --c-cta: #f5b800;
  --c-bg: #ffffff;
  --c-bg-alt: #f3f4f7;
  --c-border: #cfd3dc;
  --c-note: #fff4cc;
  --radius: 4px;
  --sp-section: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text);
  background: var(--c-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-navy); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }

.inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.inner-narrow { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.section { padding: var(--sp-section) 0; }
.section.alt { background: var(--c-bg-alt); }
.section.navy { background: var(--c-navy); color: #fff; }

/* 見出し */
.h2 {
  font-size: 34px; font-weight: 700; line-height: 1.4; color: var(--c-navy);
  margin-bottom: 40px;
}
.h2::after { content: ""; display: block; width: 48px; height: 3px; background: var(--c-navy); margin-top: 16px; }
.navy .h2 { color: #fff; }
.navy .h2::after { background: #fff; }
.h3 { font-size: 22px; font-weight: 700; line-height: 1.5; color: var(--c-navy); margin-bottom: 12px; }
.lead { font-size: 18px; margin-bottom: 32px; }
.note { font-size: 14px; margin-top: 16px; }

/* 要確認の札 */
.tbd {
  display: inline-block; font-size: 14px; font-weight: 700; line-height: 1.4;
  background: var(--c-note); border: 1px solid #e3c35a; padding: 2px 8px; border-radius: 2px;
  vertical-align: middle; margin-left: 6px; color: var(--c-text);
}

/* 写真の仮枠 */
.ph {
  background: var(--c-bg-alt); border: 1px dashed #9aa1b2; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 14px; font-weight: 700; padding: 16px; aspect-ratio: 4 / 3; color: var(--c-text);
}
.ph.wide { aspect-ratio: 16 / 9; }
.ph.tall { aspect-ratio: 9 / 16; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 28px; border-radius: var(--radius);
  font-size: 18px; font-weight: 700; text-decoration: none; line-height: 1.3;
}
.btn-entry { background: var(--c-cta); color: var(--c-navy); }
.btn-entry:hover { background: #ffc61a; }
.btn-sub { background: #fff; color: var(--c-navy); border: 1px solid var(--c-navy); }
.btn-sub:hover { background: var(--c-bg-alt); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--c-border); }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-header .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-navy); font-weight: 700; font-size: 15px; }
.site-header .logo img { height: 32px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: 24px; }
.site-header nav a.nav-link { font-size: 15px; font-weight: 700; text-decoration: none; color: var(--c-text); }
.site-header nav a.nav-link:hover { color: var(--c-navy); text-decoration: underline; }
.site-header .btn { min-height: 44px; font-size: 16px; padding: 0 20px; }

/* 最初の画面 */
.hero { position: relative; background: var(--c-navy-dk); color: #fff; }
.hero-img { position: absolute; inset: 0; background: url(../img/hero-truck.jpg) center 60% / cover no-repeat; opacity: .55; }
.hero .inner { position: relative; padding-top: 88px; padding-bottom: 88px; }
.hero-tag { display: inline-block; font-size: 15px; font-weight: 700; border: 1px solid #fff; padding: 4px 12px; margin-bottom: 20px; }
.hero h1 { font-size: 52px; font-weight: 900; line-height: 1.3; margin-bottom: 24px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-points li { background: #fff; color: var(--c-navy); font-weight: 700; font-size: 18px; padding: 10px 18px; border-radius: var(--radius); }
.hero-points li strong { font-size: 28px; font-weight: 900; }
.hero .note { margin-top: 20px; }

/* 下層ページの見出し帯 */
.page-head { background: var(--c-navy); color: #fff; padding: 56px 0; }
.page-head .crumb { font-size: 14px; margin-bottom: 12px; }
.page-head .crumb a { color: #fff; }
.page-head h1 { font-size: 40px; font-weight: 900; line-height: 1.35; }
.page-head p { font-size: 18px; margin-top: 12px; }

/* 数字で見る */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--c-border); border-left: 1px solid var(--c-border); background: #fff; }
.numbers > div { border-right: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); padding: 28px 20px; }
.numbers dt { font-size: 16px; font-weight: 700; }
.numbers dd { font-size: 48px; font-weight: 900; color: var(--c-navy); line-height: 1.2; margin-top: 8px; }
.numbers dd small { font-size: 18px; font-weight: 700; margin-left: 4px; }
.numbers .sub { font-size: 14px; font-weight: 400; color: var(--c-text); display: block; margin-top: 6px; line-height: 1.5; }

/* 仕事の種類（職種への入口） */
.jobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.job { display: grid; grid-template-columns: 200px 1fr; gap: 20px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--c-text); }
.job:hover { border-color: var(--c-navy); }
.job:hover .job-more { text-decoration: underline; }
.job .ph { aspect-ratio: 1 / 1; }
.job h3 { font-size: 20px; font-weight: 700; color: var(--c-navy); line-height: 1.4; margin-bottom: 6px; }
.job .pay { font-weight: 700; margin-bottom: 6px; }
.job-more { font-weight: 700; color: var(--c-navy); font-size: 15px; margin-top: 8px; display: inline-block; }
.job.wide { grid-column: 1 / -1; grid-template-columns: 200px 1fr; }

/* 比較表・募集要項 */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; background: #fff; font-size: 16px; }
.tbl th, .tbl td { border: 1px solid var(--c-border); padding: 14px 16px; text-align: left; vertical-align: top; }
.tbl thead th { background: var(--c-bg-alt); font-weight: 700; }
.tbl tbody th { background: var(--c-bg-alt); width: 200px; font-weight: 700; white-space: nowrap; }

/* 1日の流れ */
.day { border-left: 2px solid var(--c-navy); margin-left: 8px; }
.day li { position: relative; padding: 0 0 24px 28px; }
.day li::before { content: ""; position: absolute; left: -7px; top: 9px; width: 12px; height: 12px; background: var(--c-navy); border-radius: 50%; }
.day time { font-weight: 900; color: var(--c-navy); font-size: 18px; margin-right: 12px; }

/* 2列 */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* 育成のステップ */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--c-border); background: #fff; }
.steps li { padding: 24px 20px; border-right: 1px solid var(--c-border); }
.steps li:last-child { border-right: 0; }
.steps .num { font-size: 14px; font-weight: 700; color: var(--c-navy); }
.steps h3 { font-size: 19px; margin: 4px 0 8px; color: var(--c-navy); }

/* 先輩の声 */
.voices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.voice { display: grid; grid-template-columns: 160px 1fr; gap: 20px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px; }
.voice .ph { aspect-ratio: 9 / 16; font-size: 14px; }
.voice .who { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.voice dl dt { font-weight: 700; color: var(--c-navy); margin-top: 8px; }

/* 働きやすさ */
.perks { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--c-border); }
.perks > div { padding: 24px 8px; border-bottom: 1px solid var(--c-border); display: grid; grid-template-columns: 180px 1fr; gap: 16px; }
.perks h3 { font-size: 18px; color: var(--c-navy); margin: 0; }
.perks > div:nth-child(odd) { padding-right: 32px; }
.perks > div:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--c-border); }

/* 勤務地 */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.area { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px; }
.area h3 { font-size: 18px; color: var(--c-navy); margin-bottom: 8px; border-bottom: 1px solid var(--c-border); padding-bottom: 8px; }
.area li { padding: 4px 0; }
.area li a { font-weight: 700; }

/* よくある質問 */
.faq details { border-bottom: 1px solid var(--c-border); }
.faq details:first-child { border-top: 1px solid var(--c-border); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--c-navy); font-weight: 900; margin-right: 12px; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 18px; font-size: 22px; color: var(--c-navy); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 20px 28px; }

/* 応募の帯 */
.entry-band { text-align: center; }
.entry-band .h2 { display: inline-block; }
.entry-band .h2::after { margin-left: auto; margin-right: auto; }
.entry-band .btn-row { justify-content: center; margin-top: 8px; }
.entry-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; text-align: left; }
.entry-ways > div { border: 1px solid rgba(255,255,255,.5); padding: 20px; border-radius: var(--radius); }
.entry-ways h3 { color: #fff; font-size: 18px; margin-bottom: 4px; }

/* 応募フォーム */
.form { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 40px; }
.form-row { margin-bottom: 28px; }
.form-row label, .form-row .label { display: block; font-weight: 700; margin-bottom: 8px; }
.req { display: inline-block; background: var(--c-navy); color: #fff; font-size: 14px; padding: 0 8px; margin-left: 8px; border-radius: 2px; }
.opt { display: inline-block; border: 1px solid var(--c-navy); color: var(--c-navy); font-size: 14px; padding: 0 8px; margin-left: 8px; border-radius: 2px; }
.form input[type=text], .form input[type=tel], .form select, .form textarea {
  width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid #9aa1b2; border-radius: var(--radius); background: #fff; color: var(--c-text);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--c-navy); outline-offset: 1px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--c-border); padding: 8px 14px; border-radius: var(--radius); font-weight: 400; margin: 0; cursor: pointer; }
.form .btn-entry { width: 100%; font-size: 20px; border: 0; cursor: pointer; }

/* フッター */
.site-footer { background: var(--c-navy-dk); color: #fff; padding: 48px 0 120px; font-size: 15px; }
.site-footer a { color: #fff; }
.site-footer .foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 24px; }
.site-footer .foot-nav a { font-weight: 700; text-decoration: none; }
.site-footer .foot-nav a:hover { text-decoration: underline; }

/* スマホの下部固定バー */
.fixed-bar { display: none; }

@media (max-width: 767px) {
  :root { --sp-section: 56px; }
  .h2 { font-size: 26px; margin-bottom: 28px; }
  .h3 { font-size: 19px; }
  .lead { font-size: 16px; }
  .site-header nav .nav-link { display: none; }
  .site-header .logo span { display: none; }
  .site-header nav { gap: 0; }
  .site-header .btn { font-size: 15px; padding: 0 14px; }
  .ph { font-size: 14px; padding: 8px; }
  .hero .inner { padding-top: 48px; padding-bottom: 56px; }
  .hero h1 { font-size: 32px; }
  .hero-points li { font-size: 16px; padding: 8px 12px; }
  .hero-points li strong { font-size: 22px; }
  .page-head { padding: 40px 0; }
  .page-head h1 { font-size: 28px; }
  .page-head p { font-size: 16px; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers > div { padding: 20px 14px; }
  .numbers dd { font-size: 30px; }
  .numbers dd small { font-size: 15px; }
  .jobs, .voices, .cols, .areas, .entry-ways { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .job, .job.wide { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .job h3 { font-size: 18px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; border-bottom: 1px solid var(--c-border); }
  .steps li:last-child { border-bottom: 0; }
  .voice { grid-template-columns: 110px minmax(0, 1fr); padding: 16px; }
  .perks { grid-template-columns: 1fr; }
  .perks > div, .perks > div:nth-child(odd), .perks > div:nth-child(even) { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; border-left: 0; }
  .tbl { min-width: 600px; }
  .tbl tbody th { width: 110px; white-space: normal; }

  .tbl th, .tbl td { padding: 12px 10px; }
  .form { padding: 24px 16px; }
  .btn { font-size: 17px; }
  .fixed-bar {
    display: grid; grid-template-columns: 2fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--c-border); padding: 8px; gap: 6px;
  }
  .fixed-bar a { min-height: 52px; font-size: 15px; padding: 0 6px; }
  .fixed-bar .btn-entry { font-size: 17px; }
}
.form [aria-invalid="true"] { border-color: #c00000; outline: 2px solid #c00000; }
