:root {
  color-scheme: light;
  --recruit-ink: #192e39;
  --recruit-body: #52616a;
  --recruit-blue: #2a71b9;
  --recruit-blue-deep: #143b58;
  --recruit-gold: #dfa92d;
  --recruit-paper: #fff;
  --recruit-wash: #f3f5f3;
  --recruit-line: #dce3e4;
  --recruit-max: 1160px;
  font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--recruit-ink); background: var(--recruit-paper); line-height: 1.8; font-size: 16px; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--recruit-gold); outline-offset: 3px; }
.skip-link { position: absolute; z-index: 20; top: -60px; left: 12px; padding: 9px 14px; background: #fff; }
.skip-link:focus { top: 12px; }

.site-header { width: min(100% - 48px, var(--recruit-max)); min-height: 82px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 200px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 34px); font-size: 14px; font-weight: 600; }
.site-header nav a, .site-footer nav a { text-decoration: none; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--recruit-blue); }
.site-header .header-cta { padding: 11px 18px; background: var(--recruit-blue-deep); color: #fff; transition: background .2s ease, transform .2s ease; }
.site-header .header-cta:hover { color: #fff; background: var(--recruit-blue); transform: translateY(-1px); }
.preview-banner { margin: 0; padding: 6px 16px; color: #58400a; background: #f7e9bd; font-size: 11px; text-align: center; }
.preview-banner span { margin-right: 8px; font-weight: 800; letter-spacing: .1em; }

.hero { position: relative; min-height: 590px; display: flex; align-items: center; overflow: hidden; isolation: isolate; background: #254958; color: #fff; }
.hero-photo, .hero-shade { position: absolute; z-index: -1; inset: 0; }
.hero-photo { background: url("recruit-hero-2026.png") center 53% / cover no-repeat; transform: scale(1.01); }
.hero-shade { background: linear-gradient(90deg, rgba(12, 34, 45, .88) 0%, rgba(12, 34, 45, .72) 40%, rgba(12, 34, 45, .1) 100%), linear-gradient(0deg, rgba(12, 34, 45, .43), transparent 46%); }
.hero-content { width: min(100% - 48px, var(--recruit-max)); margin: 0 auto; padding: 92px 0 104px; }
.eyebrow { margin: 0 0 18px; font-size: 11px; font-weight: 700; letter-spacing: .17em; line-height: 1.5; }
.eyebrow-blue { color: var(--recruit-blue); }
.hero h1 { max-width: 760px; margin: 0; color: #fff; font-size: clamp(39px, 6.2vw, 72px); font-weight: 700; letter-spacing: -.055em; line-height: 1.22; text-wrap: balance; }
.hero h1 span { color: #f0c65f; }
.hero-lead { margin: 25px 0 0; color: rgba(255,255,255,.92); font-size: clamp(15px, 1.8vw, 19px); line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-height: 50px; padding: 12px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; text-align: center; text-decoration: none; font-size: 14px; font-weight: 700; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button-primary { color: #192e39; background: var(--recruit-gold); }
.button-primary:hover { color: #192e39; background: #efbf48; }
.button-light { color: #fff; border: 1px solid rgba(255,255,255,.7); background: rgba(19,49,63,.42); }
.button-light:hover { color: var(--recruit-ink); background: #fff; }
.button-dark { width: fit-content; margin-top: 20px; color: #fff; background: var(--recruit-blue-deep); }
.button-dark:hover { color: #fff; background: var(--recruit-blue); }
.hero-note { margin: 38px 0 0; color: rgba(255,255,255,.78); font-size: 12px; letter-spacing: .06em; }
.hero-caption { position: absolute; right: max(24px, calc((100vw - var(--recruit-max)) / 2)); bottom: 20px; color: rgba(255,255,255,.84); font-size: 11px; }
.hero-caption span { margin-right: 8px; color: #f0c65f; letter-spacing: .12em; }
.hero-caption small { display: block; margin-top: 2px; font-size: 9px; letter-spacing: 0; text-align: right; }

.quick-facts { width: min(100% - 48px, var(--recruit-max)); margin: -32px auto 0; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; box-shadow: 0 16px 45px rgba(19, 49, 63, .12); }
.quick-facts > div { min-height: 112px; padding: 20px clamp(16px, 3vw, 36px); display: grid; align-content: center; gap: 3px; border-right: 1px solid var(--recruit-line); }
.quick-facts > div:last-child { border-right: 0; }
.quick-facts strong { font-size: 17px; }
.quick-facts span:not(.fact-label) { color: var(--recruit-body); font-size: 13px; }
.fact-label { color: var(--recruit-blue); font-size: 11px; font-weight: 700; letter-spacing: .09em; }

.section { width: min(100% - 48px, var(--recruit-max)); margin-inline: auto; padding-block: 116px; }
.section-heading { max-width: 630px; margin-bottom: 42px; }
.section-heading h2, .work-life-copy h2, .life-copy h2 { margin: 0; font-size: clamp(31px, 4.2vw, 48px); font-weight: 700; letter-spacing: -.045em; line-height: 1.38; text-wrap: balance; }
.section-heading > p:last-child { max-width: 590px; margin: 16px 0 0; color: var(--recruit-body); }
.job-list { display: grid; gap: 26px; }
.job-card { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr); min-height: 420px; background: var(--recruit-wash); }
.job-card-seasonal { grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr); background: #f5f2e9; }
.job-card-seasonal .job-photo { order: 2; }
.job-photo { min-height: 320px; background-position: center; background-size: cover; }
.job-photo-carpenter { background-image: url("../images/004.jpg"); }
.job-photo-snow { background-image: url("recruit-roof-snow-2026-v2.png"); background-position: center; }
.job-copy { padding: clamp(24px, 4vw, 50px); align-self: center; }
.job-heading-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.open-label { display: inline-block; padding: 3px 8px; color: #fff; background: var(--recruit-blue); font-size: 11px; font-weight: 700; }
.job-type { color: #64717a; font-size: 12px; }
.job-copy h3 { margin: 15px 0 10px; font-size: clamp(28px, 3vw, 35px); letter-spacing: -.035em; line-height: 1.35; }
.job-description { margin: 0 0 20px; color: var(--recruit-body); font-size: 14px; }
.job-facts { margin: 0; border-top: 1px solid #d2dcde; }
.job-facts > div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid #d2dcde; font-size: 13px; }
.job-facts dt { color: #54646d; font-weight: 600; }
.job-facts dd { margin: 0; font-weight: 600; }
.salary-note { margin: 13px 0 15px; color: #5b676c; font-size: 11px; line-height: 1.8; }
.text-link { width: fit-content; display: block; color: var(--recruit-blue-deep); font-size: 13px; font-weight: 700; text-underline-offset: 4px; }
.text-link:hover { color: var(--recruit-blue); }
.text-link span { margin-left: 5px; }
.job-footnote { margin: 25px 0 0; color: var(--recruit-body); font-size: 13px; text-align: center; }
.job-footnote a { color: var(--recruit-blue-deep); text-underline-offset: 3px; }

.work-life { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #edf1f1; }
.work-life-image { min-height: 500px; }
.work-life-image img { width: 100%; height: 100%; min-height: 500px; object-fit: cover; object-position: 55% center; }
.work-life-copy { max-width: 660px; padding: clamp(45px, 7vw, 88px) clamp(32px, 7vw, 96px); align-self: center; }
.work-life-copy > p:not(.eyebrow) { color: var(--recruit-body); font-size: 14px; }
.work-life-copy h2 { font-size: clamp(30px, 3.6vw, 43px); }
.transport-links { display: grid; gap: 10px; margin-top: 22px; }
.transport-links a { width: fit-content; color: var(--recruit-blue-deep); font-size: 12px; text-underline-offset: 4px; }

.life-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .98fr); align-items: center; gap: clamp(42px, 8vw, 100px); }
.life-copy > p:not(.eyebrow) { color: var(--recruit-body); font-size: 14px; }
.life-copy h2 { margin-bottom: 20px; }
.life-copy .housing-note { margin-top: 20px; padding: 13px 15px; border-left: 3px solid var(--recruit-gold); background: var(--recruit-wash); font-size: 12px; }
.housing-note a { color: var(--recruit-blue-deep); text-underline-offset: 3px; }
.life-copy .text-link { margin-top: 23px; }
.life-photo { margin: 0; position: relative; }
.life-photo img { width: 100%; aspect-ratio: 1.23; object-fit: cover; }
.life-photo figcaption { width: fit-content; margin: -20px 0 0 auto; position: relative; padding: 8px 14px; color: #fff; background: var(--recruit-blue-deep); font-size: 11px; letter-spacing: .05em; }
.life-photo figcaption small { display: block; margin-top: 2px; font-size: 9px; font-weight: 400; letter-spacing: 0; text-align: right; }

.closing-cta { padding: 86px 24px 96px; text-align: center; color: #fff; background: var(--recruit-blue-deep); }
.closing-cta .eyebrow { color: #f0c65f; }
.closing-cta h2 { margin: 0; font-size: clamp(30px, 4vw, 45px); letter-spacing: -.04em; text-wrap: balance; }
.closing-cta > p:not(.eyebrow) { max-width: 650px; margin: 15px auto 0; color: rgba(255,255,255,.82); }
.closing-cta .hero-actions { justify-content: center; }
.site-footer { padding: 38px 24px 88px; text-align: center; color: #56636b; background: #f4f6f5; font-size: 12px; }
.site-footer > a { width: fit-content; display: block; margin: 0 auto 15px; }
.site-footer img { width: 180px; }
.site-footer p { margin: 0 0 15px; line-height: 1.9; }
.site-footer p a { text-decoration: none; }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin: 18px 0; }
.site-footer small { color: #7b8589; }
.mobile-cta { display: none; }

/* The existing application form is a standalone PHP page, so keep its controls
   independent from the site's legacy template and provide the same phone path. */
body:has(#mailformpro) { padding-bottom: 0; }
.recruit-sticky { display: none; }
#application-form { scroll-margin-top: 20px; }

@media (max-width: 820px) {
  .site-header { width: min(100% - 32px, var(--recruit-max)); min-height: 72px; }
  .brand img { width: 165px; }
  .site-header nav { gap: 15px; font-size: 12px; }
  .site-header .header-cta { padding: 9px 12px; }
  .hero { min-height: 550px; }
  .hero-content { width: min(100% - 40px, var(--recruit-max)); padding-block: 78px 92px; }
  .quick-facts, .section { width: min(100% - 40px, var(--recruit-max)); }
  .section { padding-block: 86px; }
  .job-card, .job-card-seasonal { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .job-photo { min-height: 100%; }
  .job-card-seasonal .job-photo { order: 2; }
  .job-copy { padding: 28px; }
  .work-life-image, .work-life-image img { min-height: 450px; }
  .work-life-copy { padding: 50px 38px; }
  .life-section { gap: 38px; }
}

@media (max-width: 620px) {
  :root { scroll-padding-top: 72px; }
  body { font-size: 15px; padding-bottom: 64px; }
  .site-header { min-height: 65px; }
  .brand img { width: 145px; }
  .site-header nav { gap: 0; }
  .site-header nav > a:not(.header-cta) { display: none; }
  .site-header .header-cta { font-size: 11px; }
  .hero { min-height: 550px; align-items: flex-end; }
  .hero-photo { background-position: 70% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(12, 34, 45, .72), rgba(12, 34, 45, .12)), linear-gradient(0deg, rgba(12, 34, 45, .86), rgba(12, 34, 45, .08) 88%); }
  .hero-content { width: min(100% - 36px, var(--recruit-max)); padding: 120px 0 66px; }
  .hero h1 { font-size: clamp(28px, 8.8vw, 40px); }
  .hero-lead { font-size: 14px; }
  .hero-lead br { display: none; }
  .hero-actions { gap: 9px; }
  .hero-actions .button { width: 100%; }
  .hero-note { margin-top: 24px; }
  .hero-caption { right: 16px; bottom: 12px; font-size: 9px; }
  .quick-facts { width: 100%; margin: 0; grid-template-columns: 1fr; box-shadow: none; }
  .quick-facts > div { min-height: 0; padding: 15px 22px; grid-template-columns: 78px 1fr; column-gap: 8px; border-right: 0; border-bottom: 1px solid var(--recruit-line); }
  .quick-facts strong { font-size: 14px; }
  .quick-facts span:not(.fact-label) { grid-column: 2; font-size: 12px; }
  .fact-label { grid-row: span 2; align-self: center; }
  .section { width: min(100% - 36px, var(--recruit-max)); padding-block: 68px; }
  .section-heading { margin-bottom: 27px; }
  .section-heading h2, .life-copy h2 { font-size: 34px; }
  .job-list { gap: 18px; }
  .job-card, .job-card-seasonal { display: flex; flex-direction: column; }
  .job-card-seasonal .job-photo { order: 0; }
  .job-photo { min-height: 210px; aspect-ratio: 1.7; }
  .job-copy { padding: 22px 20px 24px; }
  .job-copy h3 { font-size: 28px; }
  .job-facts > div { grid-template-columns: 74px 1fr; gap: 8px; font-size: 12px; }
  .button-dark { width: 100%; }
  .job-footnote { text-align: left; }
  .work-life { grid-template-columns: 1fr; }
  .work-life-image, .work-life-image img { min-height: 280px; max-height: 360px; }
  .work-life-copy { padding: 42px 22px 54px; }
  .work-life-copy h2 { font-size: 32px; }
  .life-section { grid-template-columns: 1fr; gap: 30px; }
  .life-photo { grid-row: 1; }
  .life-photo img { aspect-ratio: 1.35; }
  .closing-cta { padding: 66px 22px 76px; text-align: left; }
  .closing-cta h2 { font-size: 32px; }
  .closing-cta .hero-actions { justify-content: stretch; }
  .site-footer { padding-bottom: 30px; }
  .site-footer nav { gap: 13px; }
  .mobile-cta { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; min-height: 62px; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -4px 18px rgba(14, 40, 54, .16); }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; color: #fff; background: var(--recruit-blue-deep); font-size: 14px; font-weight: 700; text-decoration: none; }
  .mobile-cta a + a { color: var(--recruit-ink); background: var(--recruit-gold); }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Mobile actions on the legacy MailformPro page. */
@media (max-width: 620px) {
  body:has(#mailformpro) { padding-bottom: 60px; }
  .recruit-sticky { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; min-height: 58px; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -4px 18px rgba(14, 40, 54, .16); }
  .recruit-sticky a { display: flex; align-items: center; justify-content: center; color: #fff; background: var(--recruit-blue-deep); font-size: 14px; font-weight: 700; text-decoration: none; }
  .recruit-sticky a + a { color: var(--recruit-ink); background: var(--recruit-gold); }
}
