/* 株式会社マツダ 採用LP — Figma PC版 / レスポンシブ対応 */
:root {
  --navy: #16305c;
  --blue: #2457a5;
  --ink: #1f2933;
  --steel: #5b6876;
  --line: #d6dce3;
  --plate: #eef1f5;
  --white: #fff;
  --spark: #e5821f;
  --nav-height: 86px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 24px); }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 700; color: var(--navy); }
h2 { font-size: 36px; line-height: 1.45; }
h3 { font-size: 24px; }
ul, ol { padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .25em; }
button { font: inherit; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.hero :focus-visible, .entry :focus-visible { outline-color: var(--white); }
.container { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.section { padding-block: 80px; }
.section--large { padding-block: 96px; }
.section--gray { background: var(--plate); }
.stack { display: flex; flex-direction: column; gap: 40px; }
.photo { width: 100%; height: auto; object-fit: cover; }
.note { color: var(--steel); font-size: 13px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px 20px; background: var(--white); color: var(--navy); z-index: 100; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 58px; padding: 14px 20px; background: var(--spark); color: var(--white); font-size: 17px; font-weight: 700; text-decoration: none; transition: background-color .2s; }
.button:hover { background: #c66a12; }
.button--hero { width: 240px; }
.button--apply { width: 360px; max-width: 100%; min-height: 68px; border-radius: 0; box-shadow: 0 3px 0 #c96c10; font-size: 18px; letter-spacing: .08em; }
.button--business { align-self: flex-start; width: fit-content; max-width: 100%; min-height: 48px; padding: 12px 16px; background: #397ba3; color: #fff; border-radius: 0; }
.button--business:hover { background: #2d6486; }
/* PC: 1440px時に左余白160px、写真720×600px */
.hero { background: var(--navy); color: var(--white); }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; }
.hero__copy { padding: 44px 64px 44px max(32px, calc((100vw - 1120px) / 2)); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero__brand { font-weight: 700; }
.hero h1 { color: inherit; font-size: clamp(30px, 2.92vw, 42px); line-height: 1.45; white-space: nowrap; }
.hero__meta, .hero__description { font-size: 17px; }
.hero__meta { font-weight: 500; }
.hero__message { font-size: 22px; font-weight: 700; line-height: 1.6; }
.hero__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; }
.hero__facts > div { padding: 12px; background: rgba(255, 255, 255, .2); border-radius: 4px; }
.hero__facts dt { font-size: 14px; }
.hero__facts dd { margin-top: 4px; font-size: 30px; font-weight: 700; line-height: 1.45; white-space: nowrap; }
.hero__facts div + div dd { font-size: 28px; }
.hero__image { width: 100%; height: 100%; min-height: 600px; object-fit: cover; }
.contents-nav { position: sticky; top: 0; z-index: 20; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.contents-nav__inner { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.contents-nav ul { list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; }
.contents-nav a { display: block; padding-bottom: 8px; border-bottom: 1px solid transparent; font-weight: 700; text-decoration: none; color: var(--navy); white-space: nowrap; }
.contents-nav a:hover, .contents-nav a[aria-current="location"], .contents-nav .nav-priority { border-bottom-color: var(--navy); }
.menu-toggle { display: none; }
.about-grid { display: grid; grid-template-columns: 480fr 584fr; gap: 56px; }
.about-copy { display: flex; flex-direction: column; gap: 24px; }
.about-photo { aspect-ratio: 584 / 340; }
.philosophy { color: var(--navy); font-weight: 500; }
.work-intro { display: grid; grid-template-columns: 640fr 416fr; gap: 64px; }
.about-copy h3, .work-intro .one-off { font-size: 24px; line-height: 1.75; }
.one-off { margin-bottom: 20px; }
.work-intro p { font-size: 18px; max-width: 600px; }
.product-photo { aspect-ratio: 416 / 250; }
.work-detail { display: flex; flex-direction: column; gap: 24px; }
.work-detail > h3, .allowances > h3 { font-size: 28px; line-height: 1.6; }
.work-detail > p { max-width: 1040px; font-size: 18px; line-height: 1.6; }
.work-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; list-style: none; }
.work-flow li { position: relative; }
.work-flow__photo { position: relative; }
.work-flow li + li .work-flow__photo::before { content: "→"; position: absolute; top: 50%; transform: translateY(-50%); left: -34px; font-size: 20px; color: var(--navy); font-weight: 700; }
.work-flow img { aspect-ratio: 3 / 2; }
.work-flow h4 { font-size: 23px; line-height: 1.6; margin-top: 14px; }
.work-flow h4, .selection-flow h3 { display: flex; align-items: center; gap: 10px; }
.step-number { display: inline-flex; flex: 0 0 42px; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 17px; font-weight: 700; line-height: 1; }
.support-grid { display: grid; grid-template-columns: 456fr 608fr; gap: 56px; }
.support-photo { aspect-ratio: 456 / 340; }
.support-copy { display: flex; flex-direction: column; gap: 22px; }
.support-copy h3 { position: relative; padding-left: 1em; font-size: 22px; margin-bottom: 6px; }
.support-copy h3::before { content: ""; position: absolute; left: 0; top: .7em; width: .4em; height: .4em; border-radius: 50%; background: var(--navy); }
.allowances { display: flex; flex-direction: column; gap: 24px; }
.allowances > p { font-size: 18px; line-height: 1.6; }
.allowances .allowance-note { font-size: 16px; }
.allowance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
.allowance-grid > div { border-top: 1px solid var(--line); padding-top: 12px; color: var(--navy); font-weight: 700; }
.allowance-grid dt { font-size: 18px; line-height: 1.6; }
.allowance-grid dd { margin-top: 12px; font-size: 34px; line-height: 1.6; }
.career-experienced { line-height: 1.9; }
.career-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; list-style: none; }
.career-year { font-size: 28px; font-weight: 700; line-height: 1.45; color: var(--navy); padding-bottom: 16px; border-bottom: 1px solid var(--navy); margin-bottom: 16px; }
.career-grid h3 { font-size: 20px; margin-bottom: 16px; }
.environment-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; }
.environment-stats > div { padding: 24px; background: rgba(255, 255, 255, .6); border-radius: 4px; }
.environment-stats dt { color: var(--navy); font-weight: 700; }
.environment-stats strong { display: block; margin-block: 8px; font-size: 34px; color: var(--navy); line-height: 1.45; }
.environment-stats span { display: block; font-size: 14px; }
.environment-grid { display: grid; grid-template-columns: 592fr 480fr; gap: 48px; }
.factory-photo { aspect-ratio: 592 / 340; }
.environment-list { list-style: disc; padding-left: 1.3em; margin-top: 16px; }
.environment-list li { font-size: 18px; padding-left: 4px; border: 0; }
.environment-list li + li { margin-top: 14px; }
.environment-list li::marker { color: var(--navy); }
.requirements { margin-top: 80px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.9; letter-spacing: .03em; }
.requirements > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.requirements dt { padding: 22px 24px; color: var(--navy); background: var(--plate); font-weight: 700; }
.requirements dd { padding: 22px 28px; }
.requirements dd p + p, .requirements dd p + ul, .requirements dd ul + p { margin-top: 9.6px; }
.requirements ul { padding-left: 1em; list-style: "・"; }
.selection-lead { font-size: 20px; font-weight: 700; color: var(--navy); }
.selection-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 104px; align-items: center; list-style: none; }
.selection-flow li { position: relative; }
.selection-flow h3 { margin-bottom: 16px; }
.flow-arrow { position: absolute; right: -80px; top: calc(50% - 16px); }
.access-grid { margin-top: 80px; display: grid; grid-template-columns: 466fr 606fr; gap: 48px; }
.access-details > div { border-bottom: 1px solid var(--line); padding-block: 16px; }
.access-details dt { font-size: 14px; color: var(--steel); }
.access-details dd { font-weight: 500; line-height: 1.9; }
.map { position: relative; aspect-ratio: 4 / 3; background: var(--plate); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-link { position: absolute; bottom: 12px; right: 12px; padding: 6px 12px; background: var(--white); font-size: 13px; color: var(--navy); }
.entry { background: var(--navy); color: var(--white); padding-block: 64px; }
.entry h2 { color: inherit; }
.entry-grid { display: grid; grid-template-columns: 520fr 536fr; gap: 64px; }
.entry-grid > div > p { margin-bottom: 16px; font-size: 18px; }
.entry-grid .entry-phone p { font-size: 16px; margin-bottom: 8px; }
.entry-phone a { font-size: 36px; font-weight: 700; line-height: 1.45; text-decoration: none; }
.entry-phone a:hover { text-decoration: underline; }
@media (min-width: 1600px) {
  .hero__copy { padding-left: max(32px, calc((100vw - 1280px) / 2)); }
}
@media (max-width: 1199px) {
  .hero__copy { padding: 40px 32px; }
  .hero h1 { font-size: 30px; }
  .hero__message { font-size: 20px; }
  .hero__facts { gap: 12px; }
  .hero__facts dd, .hero__facts div + div dd { font-size: 24px; }
  .contents-nav ul { gap: 12px; }
  .contents-nav a { font-size: 14px; }
  .about-grid, .support-grid, .work-intro, .environment-grid { gap: 32px; }
  .about-copy h3, .work-intro .one-off { font-size: 21px; }
  .work-flow { gap: 40px; }
  .work-flow li + li .work-flow__photo::before { left: -28px; }
  .work-flow h4 { font-size: 20px; }
  .allowance-grid dd { font-size: 28px; }
  .career-grid, .environment-stats { gap: 24px; }
  .career-grid h3 { font-size: 18px; }
  .selection-flow { gap: 80px; }
  .flow-arrow { right: -68px; }
  .selection-flow h3 { font-size: 21px; }
}
@media (max-width: 899px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { width: min(624px, 100%); padding: 40px 32px; margin-inline: auto; }
  .hero h1 { font-size: 38px; }
  .hero__image { min-height: 0; height: auto; aspect-ratio: 16 / 9; max-height: 480px; object-position: center 45%; }
  .contents-nav ul { flex-wrap: wrap; justify-content: flex-start; gap: 8px 24px; padding: 16px 0; }
  .contents-nav li { flex: 0 0 calc(25% - 18px); }
  .about-grid, .support-grid, .work-intro, .environment-grid { grid-template-columns: 1fr; }
  .about-photo, .support-photo, .factory-photo { max-height: 420px; }
  .product-photo { max-width: 520px; }
  .support-copy { gap: 24px; }
  .career-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .allowance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .environment-stats strong { font-size: 28px; }
  .requirements > div { grid-template-columns: 160px minmax(0, 1fr); }
  .requirements dt, .requirements dd { padding: 20px; }
  .selection-flow { gap: 40px; }
  .selection-flow h3 { font-size: 18px; }
  .flow-arrow { right: -48px; transform: scale(.5); }
  .access-grid { grid-template-columns: 1fr; gap: 32px; }
  .entry-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .entry-phone a { font-size: 28px; }
}
@media (max-width: 599px) {
  :root { --nav-height: 62px; }
  body { font-size: 16px; }
  .container, .contents-nav__inner { width: calc(100% - 40px); }
  .section, .section--large { padding-block: 56px; }
  .stack { gap: 28px; }
  h2 { font-size: 28px; }
  h3 { font-size: 21px; }
  .hero__copy { padding: 32px 20px; gap: 18px; }
  .hero__brand { font-size: 14px; }
  .hero h1 { font-size: clamp(25px, 6.9vw, 36px); }
  .hero__meta { font-size: 14px; }
  .hero__message { font-size: clamp(17px, 4.5vw, 22px); }
  .hero__description { font-size: 15px; }
  .hero__description br { display: none; }
  .hero__facts dd, .hero__facts div + div dd { font-size: clamp(21px, 5.7vw, 28px); }
  .hero__facts dt { font-size: 12px; }
  .hero__image { aspect-ratio: 4 / 3; }
  .hero .button { width: 100%; }
  .contents-nav ul { gap: 4px 16px; padding: 8px 0 16px; }
  .contents-nav li { flex-basis: calc(50% - 8px); }
  .contents-nav a { padding-block: 10px; }
  .menu-toggle:not([hidden]) { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 62px; padding: 12px 0; color: var(--navy); font-weight: 700; background: transparent; border: 0; cursor: pointer; }
  .menu-toggle span { font-size: 24px; }
  .contents-nav.is-enhanced ul[hidden] { display: none; }
  .about-copy { gap: 20px; }
  .about-copy h3, .work-intro .one-off { font-size: 20px; }
  .about-copy h3 br { display: none; }
  .work-intro p, .work-detail > p { font-size: 16px; }
  .work-detail > h3, .allowances > h3 { font-size: 23px; }
  .work-flow { grid-template-columns: 1fr; gap: 42px; }
  .work-flow li + li .work-flow__photo::before { content: "↓"; top: -36px; left: 50%; transform: translateX(-50%); }
  .work-flow h4 { font-size: 21px; }
  .support-copy h3 { font-size: 20px; }
  .allowance-grid { grid-template-columns: 1fr; gap: 20px; }
  .allowance-grid > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
  .allowance-grid dt { font-size: 16px; }
  .allowance-grid dd { font-size: 23px; margin-top: 0; white-space: nowrap; }
  .allowances > p, .allowances .allowance-note { font-size: 16px; }
  .career-grid { grid-template-columns: 1fr; gap: 28px; }
  .career-year { font-size: 26px; }
  .career-grid h3 { font-size: 20px; margin-bottom: 8px; }
  .environment-stats { grid-template-columns: 1fr; gap: 20px; }
  .environment-stats strong { font-size: 32px; }
  .environment-list li { font-size: 16px; }
  .requirements, .access-grid { margin-top: 32px; }
  .requirements > div { grid-template-columns: 1fr; }
  .requirements dt { padding: 12px 16px; }
  .requirements dd { padding: 16px; }
  .selection-lead { font-size: 18px; }
  .selection-flow { grid-template-columns: 1fr; gap: 64px; }
  .selection-flow h3 { font-size: 22px; margin-bottom: 8px; }
  .flow-arrow { top: auto; right: calc(50% - 28px); bottom: -48px; transform: rotate(90deg); }
  .entry { padding-block: 48px; }
  .entry-grid { grid-template-columns: 1fr; gap: 32px; }
  .entry-grid > div > p { font-size: 16px; }
  .button--apply { width: 100%; }
  .entry-phone a { font-size: 32px; }
}
@media (max-width: 399px) {
  .hero__facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .contents-nav, .skip-link { display: none; }
  .section, .section--large { padding-block: 32px; }
  .hero__copy { padding: 24px; }
  .hero__inner { grid-template-columns: 1fr 1fr; }
  .hero__image { min-height: 0; }
  .map { display: none; }
  .photo, .requirements > div { break-inside: avoid; }
}
