@charset "UTF-8";

/* =========================================================
   Legacy page compatibility shell
   New recruit header/footer/menu/CTA only.
   Existing legacy page content styles are intentionally untouched.
========================================================= */

:root {
  --color-accent: #e3494b;
  --color-gray0: #ffffff;
  --color-brown: #bda684;
  --color-green: #47a386;
  --color-navy: #3f6f86;
  --color-text-main: #2a363c;
  --color-text-sub: #696969;
  --color-back-pink: #fdf0f1;
  --color-back-beige: #fcfbf9;
  --color-back-lightbrown: #f5f2ef;
  --content-width: 1130px;
  --page-gutter-pc: 40px;
  --page-gutter-tablet: 32px;
  --page-gutter-sp: 24px;
}


body.legacy-recruit-page {
  padding-top: 0;
}

/* Scope the new project's reset to shared UI only so legacy contents remain intact. */
.site-header,
.global-menu,
.fixed-entry-cta,
.pc-fixed-internship,
.site-footer,
.site-header *,
.global-menu *,
.fixed-entry-cta *,
.pc-fixed-internship *,
.site-footer * {
  box-sizing: border-box;
}

.site-header,
.global-menu,
.fixed-entry-cta,
.pc-fixed-internship,
.site-footer {
  color: var(--color-text-main);
  font-family:
    "Nunito", "Helvetica Neue", "Noto Sans JP", "Yu Gothic Medium", YuGothic,
    "游ゴシック Medium", "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-header :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure),
.global-menu :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure),
.fixed-entry-cta :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure),
.pc-fixed-internship :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure),
.site-footer :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure) {
  margin: 0;
  padding: 0;
  border: 0;
}

.site-header :where(ul, ol),
.global-menu :where(ul, ol),
.fixed-entry-cta :where(ul, ol),
.pc-fixed-internship :where(ul, ol),
.site-footer :where(ul, ol) {
  list-style: none;
}

:where(.site-header, .global-menu, .fixed-entry-cta, .pc-fixed-internship, .site-footer) :where(a) {
  color: inherit;
  text-decoration: none;
}

:where(.site-header, .global-menu, .fixed-entry-cta, .pc-fixed-internship, .site-footer) :where(button) {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

:where(.site-header, .global-menu, .fixed-entry-cta, .pc-fixed-internship, .site-footer) :where(img) {
  max-width: 100%;
  height: auto;
  vertical-align: top;
}

@media (max-width: 1199px) {
  body.legacy-recruit-page {
    padding-top: 0;
  }
}

/* =========================================================
   Protect the 2026 shared UI from legacy global element rules.
   rec2020_style.css styles bare header/footer/img elements, so those
   legacy declarations must not leak into the new shared components.
========================================================= */
body.legacy-recruit-page .site-header::before,
body.legacy-recruit-page .site-footer::before {
  display: none !important;
  content: none !important;
}

body.legacy-recruit-page .site-header {
  padding: 0;
  text-align: left;
  text-shadow: none;
}

body.legacy-recruit-page .site-footer {
  padding: 0 !important;
  overflow: visible;
  background: transparent;
  text-shadow: none;
}

:where(body.legacy-recruit-page .site-header img,
       body.legacy-recruit-page .global-menu img,
       body.legacy-recruit-page .fixed-entry-cta img,
       body.legacy-recruit-page .pc-fixed-internship img,
       body.legacy-recruit-page .site-footer img) {
  width: auto;
}

/* The original work stylesheet resolves these URLs relative to common/css.
   Point them at the retained /work/ assets explicitly. */
body.legacy-recruit-page .wrapper.work .cta .cta-label::before {
  background-image: url("/recruit/work/img/work_cta-label_before.svg");
}

body.legacy-recruit-page .wrapper.work .cta .cta-label::after {
  background-image: url("/recruit/work/img/work_cta-label_after.svg");
}

/* =========================================================
   Header/menu cascade guard for legacy pages
   Keep these low-specificity so header.css remains the source of truth.
========================================================= */
:where(body.legacy-recruit-page) :where(.site-header, .global-menu, .fixed-entry-cta, .pc-fixed-internship) {
  text-align: initial;
  text-shadow: none;
}

:where(body.legacy-recruit-page) :where(.site-header a, .global-menu a, .pc-fixed-internship a) {
  text-decoration: none;
}
