/* ==========================================================
   NIWA NATIONAL RECRUIT v3
   採用専用ヘッダーから既存テーマCSSの「後」に読み込みます。
   body.recruit-template #recruit-site 配下に限定。
   Mobile First.
   ========================================================== */

body.recruit-template {
  background:#fff;
}

body.recruit-template #ez-toc-container,
body.recruit-template .ez-toc-container,
body.recruit-template #toc_container,
body.recruit-template .toc_container,
body.recruit-template .lwptoc,
body.recruit-template .aioseo-table-of-contents,
body.recruit-template .aioseo-toc,
body.recruit-template .rank-math-toc-block {
  display:none !important;
}

body.recruit-template #recruit-site {
  --nr-green:#3f7d2b;
  --nr-green-dark:#28591d;
  --nr-green-pale:#eef5ea;
  --nr-cream:#f6f2e8;
  --nr-orange:#e87532;
  --nr-text:#253025;
  --nr-muted:#687268;
  --nr-line:#dce5d8;
  --nr-white:#fff;
  --nr-shadow:0 14px 36px rgba(38,72,30,.10);
  color:var(--nr-text);
  font-family:"Noto Sans JP","Hiragino Sans","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
  font-size:15px;
  line-height:1.85;
  background:#fff;
  overflow:hidden;
}

body.recruit-template #recruit-site *,
body.recruit-template #recruit-site *::before,
body.recruit-template #recruit-site *::after {
  box-sizing:border-box;
}

body.recruit-template #recruit-site img {
  display:block;
  max-width:100%;
  height:auto;
}

body.recruit-template #recruit-site h1,
body.recruit-template #recruit-site h2,
body.recruit-template #recruit-site h3,
body.recruit-template #recruit-site h4 {
  margin:0;
  padding:0;
  border:0 !important;
  background:none !important;
  color:inherit;
  font-family:inherit;
  font-weight:800;
  text-shadow:none;
}

body.recruit-template #recruit-site h1::before,
body.recruit-template #recruit-site h1::after,
body.recruit-template #recruit-site h2::before,
body.recruit-template #recruit-site h2::after,
body.recruit-template #recruit-site h3::before,
body.recruit-template #recruit-site h3::after {
  content:none !important;
  display:none !important;
}

body.recruit-template #recruit-site p,
body.recruit-template #recruit-site ul {
  margin-top:0;
}

body.recruit-template #recruit-site a {
  transition:.2s ease;
}

body.recruit-template #recruit-site .nr-shell {
  width:min(calc(100% - 36px),1080px);
  margin-inline:auto;
}

body.recruit-template #recruit-site .nr-shell--narrow {
  width:min(calc(100% - 36px),820px);
}

body.recruit-template #recruit-site .nr-section {
  padding:64px 0;
}

body.recruit-template #recruit-site .nr-section--soft {
  background:#f7f8f5;
}

body.recruit-template #recruit-site .nr-section--green {
  background:var(--nr-green-dark);
  color:#fff;
}

body.recruit-template #recruit-site .nr-eyebrow {
  margin:0 0 10px !important;
  color:var(--nr-green);
  font-size:11px;
  line-height:1.3;
  font-weight:900;
  letter-spacing:.18em;
}

body.recruit-template #recruit-site .nr-heading {
  margin-bottom:28px;
}

body.recruit-template #recruit-site .nr-heading h2 {
  margin-bottom:14px;
  color:var(--nr-text);
  font-size:clamp(26px,7vw,36px);
  line-height:1.4;
  letter-spacing:.01em;
}

body.recruit-template #recruit-site .nr-heading > p:last-child {
  margin-bottom:0;
  color:var(--nr-muted);
}

body.recruit-template #recruit-site .nr-heading--light h2,
body.recruit-template #recruit-site .nr-heading--light p {
  color:#fff;
}

body.recruit-template #recruit-site .nr-heading--light .nr-eyebrow {
  color:#bcd8ae;
}

body.recruit-template #recruit-site .nr-sp {
  display:inline;
}

/* HERO */
body.recruit-template #recruit-site .nr-hero {
  position:relative;
  min-height:640px;
  display:flex;
  align-items:flex-end;
  background:#eaf1e6;
  isolation:isolate;
}

body.recruit-template #recruit-site .nr-hero__media {
  position:absolute;
  inset:0;
  z-index:-2;
}

body.recruit-template #recruit-site .nr-hero__media::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to bottom,rgba(255,255,255,.03) 20%,rgba(255,255,255,.92) 74%,#fff 100%);
}

body.recruit-template #recruit-site .nr-hero__media img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:68% center;
}

body.recruit-template #recruit-site .nr-hero__inner {
  width:100%;
  padding-top:330px;
  padding-bottom:46px;
}

body.recruit-template #recruit-site .nr-hero__copy {
  max-width:620px;
}

body.recruit-template #recruit-site .nr-hero h1 {
  margin-bottom:12px;
  color:var(--nr-text);
  font-size:clamp(38px,11vw,56px);
  line-height:1.2;
  letter-spacing:.01em;
}

body.recruit-template #recruit-site .nr-hero__catch {
  margin:0 0 14px !important;
  color:var(--nr-green-dark);
  font-size:20px;
  font-weight:800;
}

body.recruit-template #recruit-site .nr-hero__lead {
  max-width:580px;
  margin:0 0 22px !important;
  color:#465046;
  font-size:14px;
}

body.recruit-template #recruit-site .nr-actions {
  display:grid;
  gap:10px;
}

body.recruit-template #recruit-site .nr-btn {
  display:inline-flex;
  min-height:50px;
  align-items:center;
  justify-content:center;
  padding:13px 20px;
  border-radius:999px;
  font-weight:900;
  line-height:1.4;
  text-align:center;
  text-decoration:none !important;
}

body.recruit-template #recruit-site .nr-btn--primary {
  border:1px solid var(--nr-green);
  background:var(--nr-green);
  color:#fff !important;
}

body.recruit-template #recruit-site .nr-btn--primary:hover {
  background:var(--nr-green-dark);
  border-color:var(--nr-green-dark);
}

body.recruit-template #recruit-site .nr-btn--ghost {
  border:1px solid #bfcabb;
  background:#fff;
  color:var(--nr-green-dark) !important;
}

body.recruit-template #recruit-site .nr-btn--outline {
  border:1px solid var(--nr-green);
  background:#fff;
  color:var(--nr-green-dark) !important;
}

/* INTRO */
body.recruit-template #recruit-site .nr-intro {
  padding-top:70px;
  padding-bottom:76px;
}

body.recruit-template #recruit-site .nr-intro h2 {
  margin-bottom:22px;
  color:var(--nr-text);
  font-size:clamp(28px,8vw,42px);
  line-height:1.4;
}

body.recruit-template #recruit-site .nr-intro__lead {
  margin-bottom:14px !important;
  color:var(--nr-green-dark);
  font-size:18px;
  line-height:1.75;
  font-weight:800;
}

/* VALUES */
body.recruit-template #recruit-site .nr-values {
  display:grid;
  gap:12px;
}

body.recruit-template #recruit-site .nr-value {
  padding:24px 22px;
  border:1px solid var(--nr-line);
  border-radius:18px;
  background:#fff;
}

body.recruit-template #recruit-site .nr-value > span {
  display:block;
  margin-bottom:9px;
  color:#a2b29a;
  font-size:11px;
  font-weight:900;
  letter-spacing:.14em;
}

body.recruit-template #recruit-site .nr-value h3 {
  margin-bottom:10px;
  color:var(--nr-green-dark);
  font-size:19px;
  line-height:1.5;
}

body.recruit-template #recruit-site .nr-value p {
  margin-bottom:0;
  font-size:14px;
}

/* HOW TO JOIN */
body.recruit-template #recruit-site .nr-join-grid {
  display:grid;
  gap:12px;
}

body.recruit-template #recruit-site .nr-join-card {
  position:relative;
  padding:25px 22px;
  border:1px solid var(--nr-line);
  border-radius:20px;
  background:#fff;
  box-shadow:0 7px 24px rgba(48,75,40,.05);
}

body.recruit-template #recruit-site .nr-join-card--main {
  border-color:#bcd0b2;
  background:#f5faf2;
}

body.recruit-template #recruit-site .nr-card-label {
  margin:0 0 9px !important;
  color:var(--nr-orange);
  font-size:10px;
  font-weight:900;
  letter-spacing:.16em;
}

body.recruit-template #recruit-site .nr-join-card h3 {
  margin-bottom:10px;
  color:var(--nr-green-dark);
  font-size:21px;
}

body.recruit-template #recruit-site .nr-join-card p:not(.nr-card-label) {
  margin-bottom:15px;
  color:#586258;
  font-size:14px;
}

body.recruit-template #recruit-site .nr-join-card a {
  color:var(--nr-green-dark) !important;
  font-size:13px;
  font-weight:900;
  text-decoration:none !important;
}

/* JOBS */
body.recruit-template #recruit-site .nr-jobs {
  background:#fff;
}

body.recruit-template #recruit-site .nr-job-list {
  display:grid;
  gap:14px;
}

body.recruit-template #recruit-site .nr-job-grid {
  display:grid;
  gap:12px;
}

body.recruit-template #recruit-site .nr-job {
  padding:24px 21px;
  border:1px solid var(--nr-line);
  border-radius:18px;
  background:#fff;
}

body.recruit-template #recruit-site .nr-job--featured {
  border-color:#bfd3b5;
  background:#f6faf4;
}

body.recruit-template #recruit-site .nr-job__top {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

body.recruit-template #recruit-site .nr-job__meta {
  margin:0 0 6px !important;
  color:var(--nr-green);
  font-size:11px;
  font-weight:900;
}

body.recruit-template #recruit-site .nr-job h3 {
  margin-bottom:12px;
  color:var(--nr-green-dark);
  font-size:21px;
  line-height:1.45;
}

body.recruit-template #recruit-site .nr-job__badge {
  flex: none;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff0e8;
    color: #c9571e;
    font-size: 10px;
    font-weight: 900;
}

body.recruit-template #recruit-site .nr-job p,
body.recruit-template #recruit-site .nr-job li {
  font-size:14px;
}

body.recruit-template #recruit-site .nr-job ul {
  margin:14px 0 17px 1.25em;
  padding:0;
}

body.recruit-template #recruit-site .nr-job li {
  margin-bottom:6px;
}

body.recruit-template #recruit-site .nr-job__note {
  padding:10px 12px;
  border-radius:10px;
  background:var(--nr-cream);
}

body.recruit-template #recruit-site .nr-text-link {
  color:var(--nr-green-dark) !important;
  font-weight:900;
  text-decoration:underline !important;
  text-underline-offset:4px;
}

/* GROW */
body.recruit-template #recruit-site .nr-grow-grid {
  display:grid;
  gap:12px;
}

body.recruit-template #recruit-site .nr-grow-grid article {
  padding:22px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:17px;
  background:rgba(255,255,255,.07);
}

body.recruit-template #recruit-site .nr-grow-grid h3 {
  margin-bottom:9px;
  color:#fff;
  font-size:19px;
}

body.recruit-template #recruit-site .nr-grow-grid p {
  margin-bottom:0;
  color:#edf4e9;
  font-size:14px;
}

/* PARTNER */
body.recruit-template #recruit-site .nr-partner-grid {
  display:grid;
  gap:12px;
}

body.recruit-template #recruit-site .nr-partner {
  padding:24px 21px;
  border:1px solid var(--nr-line);
  border-radius:18px;
  background:#fff;
}

body.recruit-template #recruit-site .nr-partner h3 {
  margin-bottom:12px;
  color:var(--nr-green-dark);
  font-size:20px;
}

body.recruit-template #recruit-site .nr-partner p {
  font-size:14px;
}

body.recruit-template #recruit-site .nr-partner__sub {
  margin-top:22px !important;
}

/* BENEFITS */
body.recruit-template #recruit-site .nr-benefits {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

body.recruit-template #recruit-site .nr-benefits span {
  display:flex;
  min-height:44px;
  align-items:center;
  justify-content:center;
  padding:8px;
  border:1px solid #e0e7dc;
  border-radius:10px;
  background:#fff;
  color:#4f594f;
  font-size:11px;
  font-weight:800;
  text-align:center;
}

body.recruit-template #recruit-site .nr-note {
  margin:14px 0 0 !important;
  color:#7a827a;
  font-size:11px;
}

/* BEFORE APPLY */
body.recruit-template #recruit-site .nr-before-grid {
  display:grid;
  gap:12px;
}

body.recruit-template #recruit-site .nr-before-grid article {
  padding:23px 21px;
  border:1px solid var(--nr-line);
  border-radius:18px;
  background:#fff;
}

body.recruit-template #recruit-site .nr-before-grid article > span {
  display:grid;
  width:40px;
  height:40px;
  margin-bottom:13px;
  place-items:center;
  border-radius:50%;
  background:var(--nr-green-pale);
  color:var(--nr-green);
  font-size:13px;
  font-weight:900;
}

body.recruit-template #recruit-site .nr-before-grid h3 {
  margin-bottom:9px;
  color:var(--nr-green-dark);
  font-size:19px;
}

body.recruit-template #recruit-site .nr-before-grid p {
  font-size:14px;
}

/* FAQ */
body.recruit-template #recruit-site .nr-faq details {
  margin-bottom:10px;
  border:1px solid var(--nr-line);
  border-radius:14px;
  background:#fff;
  overflow:hidden;
}

body.recruit-template #recruit-site .nr-faq summary {
  position:relative;
  padding:16px 46px 16px 17px;
  cursor:pointer;
  list-style:none;
  color:#354035;
  font-size:14px;
  font-weight:900;
}

body.recruit-template #recruit-site .nr-faq summary::-webkit-details-marker {
  display:none;
}

body.recruit-template #recruit-site .nr-faq summary::after {
  content:"+";
  position:absolute;
  top:50%;
  right:17px;
  transform:translateY(-50%);
  color:var(--nr-green);
  font-size:21px;
  font-weight:700;
}

body.recruit-template #recruit-site .nr-faq details[open] summary::after {
  content:"−";
}

body.recruit-template #recruit-site .nr-faq details > div {
  padding:0 17px 17px;
  color:#5c665c;
  font-size:14px;
}

/* ENTRY */
body.recruit-template #recruit-site .nr-entry {
  padding:68px 0 74px;
  background:var(--nr-green-pale);
  text-align:left;
}

body.recruit-template #recruit-site .nr-entry h2 {
  margin-bottom:14px;
  color:var(--nr-text);
  font-size:clamp(28px,8vw,38px);
  line-height:1.4;
}

body.recruit-template #recruit-site .nr-entry .nr-btn {
  width:100%;
  margin-top:8px;
}

body.recruit-template #recruit-site .nr-entry__contact {
  margin-top:28px;
  padding-top:22px;
  border-top:1px solid #c7d7bf;
  color:#5d685d;
  font-size:12px;
}

body.recruit-template #recruit-site .nr-entry__contact a {
  color:var(--nr-green-dark);
}

/* Tablet / Desktop */
@media (min-width:768px) {
  body.recruit-template #recruit-site {
    font-size:16px;
  }

  body.recruit-template #recruit-site .nr-shell {
    width:min(calc(100% - 56px),1080px);
  }

  body.recruit-template #recruit-site .nr-shell--narrow {
    width:min(calc(100% - 56px),820px);
  }

  body.recruit-template #recruit-site .nr-section {
    padding:88px 0;
  }

  body.recruit-template #recruit-site .nr-heading {
    margin-bottom:36px;
    text-align:center;
  }

  body.recruit-template #recruit-site .nr-heading > p:last-child {
    max-width:720px;
    margin-inline:auto;
  }

  body.recruit-template #recruit-site .nr-sp {
    display:none;
  }

  body.recruit-template #recruit-site .nr-hero {
    min-height:610px;
    align-items:center;
  }

  body.recruit-template #recruit-site .nr-hero__media::after {
    background:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.93) 33%,rgba(255,255,255,.48) 50%,rgba(255,255,255,0) 68%);
  }

  body.recruit-template #recruit-site .nr-hero__media img {
    object-position:center center;
  }

  body.recruit-template #recruit-site .nr-hero__inner {
    padding-top:0;
    padding-bottom:0;
  }

  body.recruit-template #recruit-site .nr-hero__copy {
    width:52%;
    padding:72px 0;
  }

  body.recruit-template #recruit-site .nr-hero h1 {
    font-size:54px;
  }

  body.recruit-template #recruit-site .nr-hero__catch {
    font-size:23px;
  }

  body.recruit-template #recruit-site .nr-hero__lead {
    font-size:15px;
  }

  body.recruit-template #recruit-site .nr-actions {
    display:flex;
    flex-wrap:wrap;
  }

  body.recruit-template #recruit-site .nr-actions .nr-btn {
    min-width:190px;
  }

  body.recruit-template #recruit-site .nr-intro {
    padding:105px 0;
    text-align:center;
  }

  body.recruit-template #recruit-site .nr-intro__lead {
    font-size:20px;
  }

  body.recruit-template #recruit-site .nr-values,
  body.recruit-template #recruit-site .nr-join-grid,
  body.recruit-template #recruit-site .nr-grow-grid,
  body.recruit-template #recruit-site .nr-before-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
  }

  body.recruit-template #recruit-site .nr-job-grid,
  body.recruit-template #recruit-site .nr-partner-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
  }

  body.recruit-template #recruit-site .nr-benefits {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:9px;
  }

  body.recruit-template #recruit-site .nr-benefits span {
    min-height:42px;
    padding:9px 14px;
    font-size:12px;
  }

  body.recruit-template #recruit-site .nr-entry {
    padding:92px 0;
    text-align:center;
  }

  body.recruit-template #recruit-site .nr-entry .nr-btn {
    width:auto;
    min-width:320px;
  }
}

@media (min-width:1100px) {
  body.recruit-template #recruit-site .nr-hero h1 {
    font-size:60px;
  }

  body.recruit-template #recruit-site .nr-value,
  body.recruit-template #recruit-site .nr-join-card,
  body.recruit-template #recruit-site .nr-job,
  body.recruit-template #recruit-site .nr-partner,
  body.recruit-template #recruit-site .nr-before-grid article {
    padding:28px;
  }
}

/* ==========================================================
   v4 refinements / mobile hero + illustrated BEFORE APPLY
   ========================================================== */

body.recruit-template #recruit-site .nr-before-icon {
  display:block;
  width:68px;
  height:68px;
  margin:0 0 16px;
  object-fit:contain;
}

@media (max-width:767px) {
  body.recruit-template #recruit-site .nr-shell,
  body.recruit-template #recruit-site .nr-shell--narrow {
    width:calc(100% - 48px);
  }

  /* スマホは画像とコピーを分離。文字を画像へ重ねない */
  body.recruit-template #recruit-site .nr-hero {
    display:block;
    min-height:0;
    background:#fff;
  }

  body.recruit-template #recruit-site .nr-hero__media {
    position:relative;
    inset:auto;
    aspect-ratio:4 / 3;
    overflow:hidden;
    background:#f4f1e8;
  }

  body.recruit-template #recruit-site .nr-hero__media::after {
    display:none;
  }

  body.recruit-template #recruit-site .nr-hero__media img {
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:75% center;
  }

  body.recruit-template #recruit-site .nr-hero__inner {
    padding-top:0;
    padding-bottom:0;
  }

  body.recruit-template #recruit-site .nr-hero__copy {
    max-width:none;
    padding:30px 0 42px;
  }

  body.recruit-template #recruit-site .nr-hero h1 {
    font-size:clamp(36px,10.5vw,46px);
    line-height:1.18;
  }

  body.recruit-template #recruit-site .nr-hero__catch {
    margin-top:4px !important;
  }

  body.recruit-template #recruit-site .nr-before-grid article {
    padding:24px 22px;
  }

  body.recruit-template #recruit-site .nr-before-icon {
    width:62px;
    height:62px;
  }
}

@media (min-width:768px) {
  body.recruit-template #recruit-site .nr-before-icon {
    width:72px;
    height:72px;
    margin-left:auto;
    margin-right:auto;
  }

  body.recruit-template #recruit-site .nr-before-grid article {
    text-align:center;
  }
}
