/* トップページ（2026-10 刷新）。値は handoff/reference/Main.dc.html に合わせている */

:root {
  --nl-accent: #E8452C;
  --nl-accent-deep: #B8321F;
  --nl-ink: #141414;
  --nl-paper: #F6F3EE;
  --nl-gray: #4A453E;
  --nl-gray-mid: #6B655C;
  --nl-line: #D6CFC4;
  --nl-on-dark-1: #D9D3C9;
  --nl-on-dark-2: #BDB8B0;
  --nl-on-dark-3: #A39D93;
  --nl-veil: 0.68;
  --nl-max: 1360px;
  --nl-gutter: 40px;
  --nl-font-head: 'Zen Kaku Gothic New', 'Hiragino Sans', sans-serif;
  --nl-font-body: 'Noto Sans JP', system-ui, 'Hiragino Sans', sans-serif;
}

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

body.nl-top {
  margin: 0;
  font-family: var(--nl-font-body);
  color: var(--nl-ink);
  background: var(--nl-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.nl-top *, .nl-top *::before, .nl-top *::after { box-sizing: border-box; }
.nl-top a { color: var(--nl-ink); }
.nl-top a:hover { color: var(--nl-accent); }
.nl-top a:focus-visible, .nl-top button:focus-visible { outline: 2px solid var(--nl-accent); outline-offset: 3px; }
.nl-top img { max-width: 100%; }
.nl-top h1, .nl-top h2, .nl-top h3 { word-break: auto-phrase; }

.nl-skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 20px; background: #fff; border-radius: 4px; }
.nl-skip:focus { top: 16px; }

.nl-section { max-width: var(--nl-max); margin: 0 auto; padding-left: var(--nl-gutter); padding-right: var(--nl-gutter); }
.nl-eyebrow { margin: 0 0 20px; font-size: 13px; letter-spacing: 0.3em; font-weight: 700; color: var(--nl-accent-deep); }
.nl-eyebrow--accent { margin-bottom: 24px; color: var(--nl-accent); }
.nl-accent { color: var(--nl-accent); }
.nl-h2 { margin: 0; font-family: var(--nl-font-head); font-weight: 900; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.35; }

.nl-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 28px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; }
.nl-top .nl-btn--accent { background: var(--nl-accent); color: #fff; }
.nl-top .nl-btn--accent:hover { color: #fff; background: var(--nl-accent-deep); }
.nl-top .nl-btn--ghost { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.6); color: #fff; }
.nl-top .nl-btn--ghost:hover { color: #fff; background: rgba(255,255,255,0.24); }
.nl-btn--block { justify-content: center; min-height: 56px; margin-top: 8px; }
.nl-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 700; text-decoration: none; }

/* ---------- ヒーロー ---------- */
.nl-hero { position: relative; height: 820px; min-height: 560px; overflow: hidden; background: var(--nl-ink); color: #fff; }
.nl-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.nl-hero__img.is-current { opacity: 1; }
.nl-hero__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,14,14,var(--nl-veil)) 0%, rgba(14,14,14,0.35) 55%, rgba(14,14,14,0.08) 100%); }

.nl-nav { position: relative; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; max-width: var(--nl-max); margin: 0 auto; padding: 28px var(--nl-gutter); }
.nl-top .nl-logo { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: #fff; }
.nl-logo__ja { font-family: var(--nl-font-head); font-weight: 900; font-size: 20px; letter-spacing: 0.08em; }
.nl-logo__en { font-size: 10px; letter-spacing: 0.24em; opacity: 0.8; }
.nl-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; font-size: 13px; letter-spacing: 0.14em; font-weight: 500; }
.nl-menu__item { position: relative; }
.nl-top .nl-menu__link { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: none; }
.nl-top .nl-menu__link:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.nl-top .nl-menu__link--contact { border: 1px solid rgba(255,255,255,0.7); border-radius: 999px; padding: 0 22px; }
.nl-top .nl-menu__link--contact:hover { background: rgba(255,255,255,0.14); text-decoration: none; }
.nl-sub { position: absolute; top: 100%; left: -16px; min-width: 220px; margin: 0; padding: 8px 0; list-style: none; background: var(--nl-ink); border-radius: 6px; box-shadow: 0 12px 32px rgba(0,0,0,0.3); letter-spacing: 0.04em; visibility: hidden; opacity: 0; transform: translateY(4px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; }
.nl-menu__item.has-children:hover .nl-sub, .nl-menu__item.has-children:focus-within .nl-sub { visibility: visible; opacity: 1; transform: none; }
.nl-top .nl-sub a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; color: var(--nl-on-dark-1); text-decoration: none; font-size: 13px; }
.nl-top .nl-sub a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nl-menu-toggle { display: none; }

.nl-hero__body { position: absolute; left: 0; right: 0; bottom: 0; max-width: var(--nl-max); margin: 0 auto; padding: 0 var(--nl-gutter) 96px; color: #fff; }
.nl-hero__eyebrow { margin: 0 0 24px; font-size: 13px; letter-spacing: 0.3em; font-weight: 500; color: var(--nl-accent); }
.nl-hero__title { margin: 0; font-family: var(--nl-font-head); font-weight: 900; font-size: clamp(44px, 7.4vw, 112px); line-height: 1.12; letter-spacing: 0.02em; }
.nl-hero__lead { margin: 32px 0 0; max-width: 560px; font-size: 17px; line-height: 1.9; opacity: 0.92; }
.nl-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.nl-hero__ui { position: absolute; right: 40px; bottom: 40px; z-index: 5; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; color: #fff; }
.nl-hero__caption { margin: 0; display: flex; align-items: baseline; gap: 12px; text-shadow: 0 1px 8px rgba(0,0,0,0.5); font-size: 13px; letter-spacing: 0.06em; }
.nl-hero__time { font-family: var(--nl-font-head); font-weight: 900; font-size: 15px; letter-spacing: 0.24em; color: var(--nl-accent); }
.nl-hero__controls { display: flex; align-items: center; gap: 6px; }
.nl-hero__bar { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.nl-hero__bar span { display: block; width: 28px; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.4); transition: background 0.3s ease; }
.nl-hero__bar.is-current span { background: #fff; }
.nl-hero__toggle { width: 44px; height: 44px; padding: 0; margin-left: 6px; border: 1px solid rgba(255,255,255,0.5); border-radius: 999px; background: rgba(0,0,0,0.2); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.nl-hero__toggle .nl-icon-play { display: none; }
.nl-hero.is-paused .nl-icon-pause { display: none; }
.nl-hero.is-paused .nl-icon-play { display: block; }

/* ---------- 数値帯・ニュースティッカー ---------- */
.nl-stats { background: var(--nl-ink); color: #fff; }
.nl-stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; max-width: var(--nl-max); margin: 0 auto; padding: 40px var(--nl-gutter); }
.nl-stat { display: flex; flex-direction: column; gap: 6px; }
.nl-stat__num { font-family: var(--nl-font-head); font-weight: 900; font-size: 40px; line-height: 1.3; }
.nl-stat__unit { font-size: 18px; margin-left: 4px; }
.nl-stat__label { font-size: 13px; color: var(--nl-on-dark-2); letter-spacing: 0.08em; }
.nl-ticker-wrap { max-width: var(--nl-max); margin: 0 auto; padding: 0 var(--nl-gutter) 28px; }
.nl-ticker { display: flex; align-items: center; gap: 20px; border-top: 1px solid rgba(255,255,255,0.18); padding-top: 18px; }
.nl-ticker__label { flex: 0 0 auto; font-size: 11px; font-weight: 700; letter-spacing: 0.24em; color: var(--nl-accent); }
.nl-ticker__view { position: relative; flex: 1 1 auto; min-width: 0; height: 44px; overflow: hidden; }
.nl-top .nl-ticker__item { position: absolute; left: 0; right: 0; top: 0; height: 44px; display: flex; align-items: center; gap: 16px; text-decoration: none; color: #fff; opacity: 0; transform: translateY(100%); transition: opacity 0.6s ease, transform 0.6s ease; }
.nl-top .nl-ticker__item:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.nl-ticker__item.is-current { opacity: 1; transform: translateY(0); }
.nl-ticker__item.is-prev { transform: translateY(-100%); }
.nl-ticker__date { flex: 0 0 auto; font-size: 13px; color: var(--nl-on-dark-3); letter-spacing: 0.06em; }
.nl-ticker__title { flex: 1 1 auto; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nl-top .nl-ticker__more { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 700; color: var(--nl-on-dark-1); text-decoration: none; }
.nl-top .nl-ticker__more:hover { color: #fff; }

/* ---------- ミッション ---------- */
.nl-mission { padding-top: 140px; padding-bottom: 100px; display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; scroll-margin-top: 24px; }
.nl-mission__head { flex: 1 1 420px; min-width: 0; }
.nl-mission__title { margin: 0; font-family: var(--nl-font-head); font-weight: 900; font-size: clamp(34px, 4.2vw, 60px); line-height: 1.3; }
.nl-mission__body { flex: 1 1 480px; min-width: 0; font-size: 17px; line-height: 2.2; color: #2A2723; }
.nl-mission__body p { margin: 0 0 28px; }
.nl-mission__body p:last-child { margin-bottom: 0; }

/* ---------- ギャラリー ---------- */
.nl-gallery { padding-bottom: 140px; }
.nl-gallery__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.nl-gallery__item { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.nl-gallery__item img { width: 100%; height: 340px; object-fit: cover; border-radius: 6px; display: block; }
.nl-gallery__item figcaption { font-size: 13px; color: var(--nl-gray); letter-spacing: 0.06em; }

/* ---------- 事業 ---------- */
.nl-service { padding-top: 120px; padding-bottom: 120px; scroll-margin-top: 0; }
.nl-service .nl-h2 { margin-bottom: 20px; }
.nl-service__lead { margin: 0 0 56px; max-width: 680px; font-size: 16px; line-height: 2; color: var(--nl-gray); }
.nl-service__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); border-top: 2px solid var(--nl-ink); }
.nl-service__item { display: flex; flex-direction: column; gap: 14px; padding: 36px 32px 40px 0; border-bottom: 1px solid var(--nl-line); }
.nl-service__num { font-family: var(--nl-font-head); font-weight: 900; font-size: 44px; line-height: 1.2; color: var(--nl-accent); }
.nl-service__name { font-size: 13px; letter-spacing: 0.16em; font-weight: 700; }
.nl-service__title { margin: 0; font-family: var(--nl-font-head); font-weight: 900; font-size: 26px; line-height: 1.45; }
.nl-service__text { margin: 0; font-size: 15px; line-height: 1.95; color: var(--nl-gray); }
.nl-service__item .nl-link { margin-top: 8px; align-self: flex-start; }
.nl-service__note { margin: 28px 0 0; font-size: 14px; line-height: 1.9; color: var(--nl-gray); }
.nl-service__note a { font-weight: 700; }

/* ---------- お知らせ ---------- */
.nl-news { padding-top: 120px; padding-bottom: 120px; }
.nl-news__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.nl-news__list { display: flex; flex-direction: column; border-top: 2px solid var(--nl-ink); }
.nl-top .nl-news__item { display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 28px 0; border-bottom: 1px solid var(--nl-line); text-decoration: none; color: var(--nl-ink); }
.nl-top .nl-news__item:hover .nl-news__title { color: var(--nl-accent-deep); }
.nl-news__date { flex: 0 0 120px; font-size: 14px; color: var(--nl-gray-mid); letter-spacing: 0.06em; }
.nl-news__title { flex: 1 1 400px; font-size: 16px; line-height: 1.7; font-weight: 500; }

/* ---------- 採用 ---------- */
.nl-recruit { background: var(--nl-ink); color: #fff; }
.nl-recruit__inner { max-width: var(--nl-max); margin: 0 auto; padding: 140px var(--nl-gutter); display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.nl-recruit__copy { flex: 1 1 520px; min-width: 0; }
.nl-recruit__title { margin: 0; font-family: var(--nl-font-head); font-weight: 900; font-size: clamp(36px, 5vw, 72px); line-height: 1.25; }
.nl-recruit__lead { margin: 32px 0 0; max-width: 560px; font-size: 16px; line-height: 2; color: var(--nl-on-dark-1); }
.nl-recruit__jobs { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.nl-top .nl-job { display: flex; align-items: baseline; gap: 20px; padding: 24px 28px; border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; text-decoration: none; color: #fff; transition: border-color 0.2s ease, background 0.2s ease; }
.nl-top .nl-job:hover { color: #fff; border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.04); }
.nl-job__num { font-family: var(--nl-font-head); font-weight: 900; font-size: 18px; color: var(--nl-accent); }
.nl-job__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nl-job__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.nl-job__title { font-family: var(--nl-font-head); font-weight: 900; font-size: 21px; }
.nl-job__badge { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; padding: 3px 8px; border-radius: 4px; background: var(--nl-accent); color: #fff; }
.nl-job__desc { font-size: 14px; line-height: 1.8; color: var(--nl-on-dark-1); }

/* ---------- 窓口 ---------- */
.nl-contact { padding-top: 100px; padding-bottom: 100px; }
.nl-contact .nl-eyebrow { margin-bottom: 24px; }
.nl-contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.nl-top .nl-contact__card { display: flex; flex-direction: column; gap: 12px; padding: 36px 32px; background: #fff; border: 1px solid var(--nl-line); border-radius: 8px; text-decoration: none; color: var(--nl-ink); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.nl-top .nl-contact__card:hover { color: var(--nl-ink); border-color: var(--nl-ink); box-shadow: 0 8px 24px rgba(20,20,20,0.08); }
.nl-contact__for { font-size: 13px; letter-spacing: 0.12em; font-weight: 700; color: var(--nl-gray-mid); }
.nl-contact__title { font-family: var(--nl-font-head); font-weight: 900; font-size: 22px; line-height: 1.5; }
.nl-contact__link { margin-top: 12px; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--nl-accent-deep); }

/* ---------- フッター ---------- */
.nl-footer { background: var(--nl-ink); color: var(--nl-on-dark-1); }
.nl-footer__inner { max-width: var(--nl-max); margin: 0 auto; padding: 64px var(--nl-gutter) 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.nl-footer__brand { display: flex; flex-direction: column; gap: 6px; }
.nl-footer__logo { font-family: var(--nl-font-head); font-weight: 900; font-size: 20px; letter-spacing: 0.08em; color: #fff; }
.nl-footer__company { font-size: 13px; }
.nl-footer__nav { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 0; padding: 0; list-style: none; font-size: 13px; letter-spacing: 0.1em; }
.nl-top .nl-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--nl-on-dark-1); text-decoration: none; }
.nl-top .nl-footer__nav a:hover { color: #fff; }
.nl-footer__copy { max-width: var(--nl-max); margin: 0 auto; padding: 0 var(--nl-gutter) 40px; font-size: 12px; color: var(--nl-on-dark-3); }

/* ---------- タブレット以下：ナビをハンバーガーに畳む ---------- */
@media (max-width: 1023px) {
  .nl-menu-toggle { position: relative; z-index: 40; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,0.6); border-radius: 999px; background: rgba(0,0,0,0.2); color: #fff; cursor: pointer; }
  .nl-menu-toggle__bar, .nl-menu-toggle__bar::before, .nl-menu-toggle__bar::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px; transition: transform 0.25s ease, background 0.25s ease; }
  .nl-menu-toggle__bar { position: relative; }
  .nl-menu-toggle__bar::before, .nl-menu-toggle__bar::after { content: ''; position: absolute; left: 0; }
  .nl-menu-toggle__bar::before { top: -6px; }
  .nl-menu-toggle__bar::after { top: 6px; }
  .nl-menu-toggle[aria-expanded="true"] .nl-menu-toggle__bar { background: transparent; }
  .nl-menu-toggle[aria-expanded="true"] .nl-menu-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
  .nl-menu-toggle[aria-expanded="true"] .nl-menu-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

  .nl-menu { position: fixed; inset: 0; z-index: 30; display: none; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; padding: 96px 24px 40px; overflow-y: auto; background: var(--nl-ink); font-size: 16px; }
  .nl-nav.is-open .nl-menu { display: flex; }
  .nl-menu__item { border-bottom: 1px solid rgba(255,255,255,0.14); }
  .nl-top .nl-menu__link { width: 100%; min-height: 56px; }
  .nl-top .nl-menu__link--contact { border: 0; border-radius: 0; padding: 0; }
  .nl-sub { position: static; visibility: visible; opacity: 1; transform: none; min-width: 0; padding: 0 0 12px 16px; background: transparent; box-shadow: none; }
  .nl-top .nl-sub a { padding: 0; font-size: 14px; }
  .nl-top .nl-sub a:hover { background: transparent; }
  body.nl-menu-open { overflow: hidden; }
}

/* ---------- スマホ ---------- */
@media (max-width: 767px) {
  :root { --nl-gutter: 24px; }
  .nl-nav { padding-top: 20px; padding-bottom: 20px; }
  .nl-hero { height: max(680px, 100svh); }
  .nl-hero__body { padding-bottom: 132px; }
  .nl-hero__lead { margin-top: 24px; font-size: 15px; }
  .nl-hero__actions { margin-top: 28px; gap: 12px; }
  .nl-hero__ui { left: var(--nl-gutter); right: var(--nl-gutter); bottom: 20px; align-items: flex-start; gap: 6px; }
  .nl-hero__caption { font-size: 12px; }
  .nl-hero__controls { margin-left: -8px; }
  .nl-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; padding-top: 32px; padding-bottom: 32px; }
  .nl-stat__num { font-size: 30px; }
  .nl-stat__unit { font-size: 15px; }
  .nl-stat__label { font-size: 12px; }
  .nl-ticker { gap: 12px; }
  .nl-ticker__date { display: none; }
  .nl-mission { padding-top: 96px; padding-bottom: 72px; gap: 40px; }
  .nl-mission__body { font-size: 16px; line-height: 2.1; }
  .nl-gallery { padding-bottom: 96px; }
  .nl-gallery__item img { height: 240px; }
  .nl-service, .nl-news { padding-top: 88px; padding-bottom: 88px; }
  .nl-service__item { padding-right: 0; }
  .nl-top .nl-news__item { gap: 4px; padding: 22px 0; }
  .nl-news__date { flex-basis: 100%; }
  .nl-news__title { flex-basis: 100%; font-size: 15px; }
  .nl-recruit__inner { padding-top: 96px; padding-bottom: 96px; gap: 40px; }
  .nl-top .nl-job { padding: 20px; gap: 14px; }
  .nl-job__title { font-size: 18px; }
  .nl-contact { padding-top: 72px; padding-bottom: 72px; }
  .nl-top .nl-contact__card { padding: 28px 24px; }
  .nl-footer__inner { padding-top: 48px; }
}

/* 375px 前後でも見出しが1行に収まるように、最小サイズだけ画面幅に合わせて下げる */
@media (max-width: 599px) {
  .nl-hero__title { font-size: min(44px, 8.2vw); }
  .nl-mission__title { font-size: min(34px, 7.6vw); }
  .nl-recruit__title { font-size: min(36px, 8.4vw); }
  .nl-h2 { font-size: min(30px, 7.2vw); }
}

@media (prefers-reduced-motion: reduce) {
  .nl-hero__img, .nl-ticker__item, .nl-sub { transition: none; }
}
