:root{
  /* color */
  --c-bg:        #ffffff;
  --c-surface:   #f5f6f7;   /* カード・セクション交互背景 */
  --c-border:    #e2e5e8;
  --c-text:      #1a1d20;
  --c-text-mut:  #5b6167;
  --c-accent:    #123a6b;   /* 濃紺。信頼感。要ブランド確認 */
  --c-accent-ink:#ffffff;
  --c-cta:       #c05216;   /* 応募ボタン。白文字とのコントラスト比4.5:1以上。要確認 */
  --c-cta-ink:   #ffffff;

  /* type */
  --f-base: system-ui, -apple-system, "Hiragino Kaku Gothic ProN",
            "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --fs-h1: clamp(1.6rem, 4vw, 2.4rem);
  --fs-h2: clamp(1.3rem, 3vw, 1.8rem);
  --fs-body: 1rem;
  --lh-body: 1.8;

  /* layout */
  --wrap: 1080px;      /* コンテンツ最大幅 */
  --wrap-narrow: 760px;/* 本文セクション */
  --sect-py: clamp(48px, 8vw, 96px);
  --radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

body,
button,
a {
  overflow-wrap: anywhere;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.4;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: 1.08rem;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  transform: translateY(-150%);
  background: var(--c-bg);
  color: var(--c-accent);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #2878c7;
}

.requirement summary:focus-visible {
  outline-offset: -5px;
  box-shadow: inset 0 0 0 3px #2878c7;
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.wrap-narrow {
  max-width: var(--wrap-narrow);
}

.section {
  padding-block: var(--sect-py);
}

.section-surface {
  background-color: var(--c-surface);
  background-image:
    linear-gradient(rgba(18, 58, 107, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 58, 107, .025) 1px, transparent 1px);
  background-size: 28px 28px;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading-left {
  margin-inline: 0;
  text-align: left;
}

.section-heading h2,
.privacy-heading h1 {
  margin-bottom: 12px;
}

.section-heading > p:last-child,
.privacy-heading > p:last-child,
.muted {
  color: var(--c-text-mut);
}

.prose p:last-child {
  margin-bottom: 0;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: filter .2s ease, transform .2s ease;
}

.button:hover {
  filter: brightness(.92);
  transform: translateY(-1px);
}

.button-small {
  min-height: 40px;
  padding: 8px 18px;
}

.button-cta {
  background: var(--c-cta);
  color: var(--c-cta-ink);
}

.button-light {
  background: var(--c-bg);
  color: var(--c-accent);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-accent);
  font-weight: 750;
  text-underline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 64px;
  border-bottom: 1px solid var(--c-border);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 3px 14px rgba(26, 29, 32, .06);
}

.header-inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  color: var(--c-text);
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

.site-logo small {
  color: var(--c-text-mut);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .18em;
}

.global-nav {
  display: none;
}

.back-link {
  color: var(--c-accent);
  font-size: .85rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 80vh;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -3;
  background: #5f6b78;
  object-fit: cover;
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(11, 28, 49, .78), rgba(11, 28, 49, .44)),
    linear-gradient(rgba(0, 0, 0, .18), rgba(0, 0, 0, .18));
}

.hero-inner {
  align-self: center;
  padding-block: 72px 88px;
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 24px;
  /* 最長行「中央自動車株式会社（掛川）で、」（14文字）が1行に収まる大きさ。
     360px幅で約24px、それ以下は 5.6vw で追従、上限は 2.2rem */
  font-size: clamp(1.15rem, 5.6vw, 2.2rem);
  line-height: 1.45;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .18);
}

.hero h1 .line {
  display: block;
  white-space: nowrap;
}

.hero-lead {
  max-width: 640px;
  font-size: .98rem;
}

.button-row {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.hero-note {
  margin: 20px 0 0;
  font-size: .78rem;
}

.jobs-grid,
.benefits-grid,
.photo-grid,
.work-grid,
.numbers-grid {
  display: grid;
  gap: 16px;
}

/* 待遇アイコンはスマホでも2カラム */
.benefits-grid {
  grid-template-columns: repeat(2, 1fr);
}

.job-card,
.benefits-grid article {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg);
}

.job-card {
  padding: 24px;
}

.job-card .text-link {
  margin-top: auto;
}

.entry-note .prose {
  margin-bottom: 28px;
}

.entry-note-caption {
  margin: 14px 0 0;
  color: var(--c-text-mut);
  font-size: .82rem;
}

.job-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.job-card-heading h4 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.jobs-subhead {
  margin: 32px 0 12px;
  font-size: 1rem;
  font-weight: 750;
  color: var(--c-text-mut);
}

.jobs-subhead:first-of-type {
  margin-top: 8px;
}

/* 正社員（主）カードはパートより大きく強調 */
.job-card-primary {
  border-color: var(--c-accent);
  border-width: 2px;
  padding: 28px;
}

.job-card-primary .job-card-heading h4 {
  font-size: 1.32rem;
}

.job-card-primary .salary {
  font-size: 1.15rem;
  font-weight: 800;
}

.jobs-grid-secondary .job-card {
  background: var(--c-surface);
}

.jobs-grid-secondary .job-card-heading h4 {
  font-size: 1.02rem;
}

.badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e8eef5;
  color: var(--c-accent);
  font-size: .72rem;
  font-weight: 750;
}

.salary {
  margin: 10px 0 18px;
  font-size: 1.15rem;
  font-weight: 800;
}

.salary small {
  font-size: .78rem;
  font-weight: 600;
  color: var(--c-text-mut);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 3px 9px;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  color: var(--c-text-mut);
  font-size: .76rem;
}

.requirement {
  margin-bottom: 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg);
  overflow: hidden;
}

.requirement summary,
.faq-list summary {
  position: relative;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.requirement summary::-webkit-details-marker,
.faq-list summary::-webkit-details-marker {
  display: none;
}

.requirement summary {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 48px 16px 20px;
}

.requirement summary::after,
.faq-list summary::after {
  position: absolute;
  right: 20px;
  content: "+";
  color: var(--c-accent);
  font-size: 1.4rem;
  font-weight: 500;
}

.requirement[open] summary::after,
.faq-list details[open] summary::after {
  content: "−";
}

.requirement-body {
  padding: 0 20px 24px;
  border-top: 1px solid var(--c-border);
}

.requirement-list {
  margin: 0 0 24px;
}

.requirement-list > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--c-border);
}

.requirement-list dt {
  margin-bottom: 4px;
  color: var(--c-text-mut);
  font-size: .82rem;
  font-weight: 750;
}

.requirement-list dd {
  margin: 0;
}

.requirement-button {
  width: 100%;
  padding-inline: 12px;
  white-space: nowrap;
}

.benefits-grid article {
  padding: 20px 12px;
  text-align: center;
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #eef2f7;
  color: var(--c-accent);
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
}

.benefits-grid h3 {
  margin-bottom: 6px;
}

.benefits-grid p {
  margin-bottom: 0;
  color: var(--c-text-mut);
  font-size: .84rem;
}

.photo-grid figure {
  position: relative;
  min-height: 220px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dce1e5;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.photo-grid figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 28px 16px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .68));
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
}

.faq-list details {
  border-top: 1px solid var(--c-border);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--c-border);
}

.faq-list summary {
  padding: 20px 48px 20px 0;
}

.faq-list p {
  margin: 0;
  padding: 0 0 22px;
  color: var(--c-text-mut);
}

.entry-cta {
  background: var(--c-accent);
  color: var(--c-accent-ink);
  text-align: center;
}

.entry-cta .button {
  width: 100%;
  margin-top: 18px;
}

.entry-notes {
  margin-top: 22px;
  font-size: .8rem;
}

.entry-notes p {
  margin-bottom: 4px;
}

.entry-notes a {
  text-underline-offset: 4px;
}

.site-footer {
  padding: 48px 0 92px;
  background: #101820;
  color: #e8ebee;
}

.footer-grid {
  display: grid;
  gap: 36px;
}

.footer-grid h2 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.footer-grid p,
.footer-grid a,
.footer-grid address {
  color: #bdc4ca;
  font-size: .82rem;
  font-style: normal;
}

.footer-grid a {
  display: block;
  width: fit-content;
  margin-bottom: 8px;
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid #394149;
  color: #bdc4ca;
  font-size: .78rem;
}

.footer-bottom p {
  margin: 0;
}

.sp-fixed-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: grid;
  padding: 8px max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  border-top: 1px solid var(--c-border);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -4px 18px rgba(26, 29, 32, .1);
}

.sp-fixed-bar .button {
  min-height: 44px;
  padding: 8px;
  font-size: .86rem;
}

.privacy-main {
  min-height: 70vh;
}

.privacy-heading {
  margin-bottom: 44px;
}

.policy-body section {
  margin-top: 36px;
}

.policy-body h2 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.policy-date {
  margin-top: 44px;
  text-align: right;
}

.privacy-back {
  margin: 48px 0 0;
}

.privacy-footer {
  padding-bottom: 32px;
}

.privacy-footer .footer-bottom {
  margin-top: 0;
}

@media (min-width: 768px) {
  .wrap {
    width: min(100% - 64px, var(--wrap));
  }

  .global-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: .86rem;
    font-weight: 700;
  }

  .global-nav > a:not(.button) {
    text-decoration: none;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-inner {
    padding-block: 104px;
  }

  .hero-lead {
    font-size: 1.08rem;
  }

  .button-row {
    display: flex;
    flex-wrap: wrap;
  }

  .hero-buttons .button {
    min-width: 230px;
  }

  .jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .benefits-grid article {
    padding: 22px 18px;
  }

  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .requirement summary {
    padding-inline: 28px 56px;
  }

  .requirement-body {
    padding: 0 28px 32px;
  }

  .requirement-list > div {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
  }

  .requirement-list dt {
    margin-bottom: 0;
  }

  .requirement-button {
    width: auto;
    min-width: 270px;
    margin-left: auto;
  }

  .entry-cta .button {
    width: auto;
    min-width: 300px;
  }

  .footer-grid {
    grid-template-columns: 1.6fr .8fr;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-footer {
    padding-bottom: 48px;
  }

  .sp-fixed-bar {
    display: none;
  }

  .privacy-footer {
    padding-bottom: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
