/* Nowledge — theme.json で表現できない補足CSS
   色・余白・フォントサイズは theme.json のトークン（--wp--preset--*）を使う。
   セクションごとに /* ===== 名前 ===== */ で区切る。 */

html {
  /* アンカー移動時に固定ヘッダーで隠れないようにする */
  scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
section[id] { scroll-margin-top: 72px; }

/* 移行元サイトの body と同じ描画設定（macOS ではこれが無いと文字が一段太く見える） */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* WP がテンプレート直下のブロック間に入れる 24px（--wp--style--block-gap）を、ヘッダーと main の間では使わない */
.wp-site-blocks > main { margin-block-start: 0; }

/* ===== アイコン（インライン SVG スプライト） =====
   字形は assets/images/icons.svg、展開は inc/setup.php の nw_render_icon_sprite()。
   サイズは font-size、色は color で指定する。 */
.nw-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  font-size: 24px;
  line-height: 1;
  vertical-align: middle;
  fill: currentColor;
  flex-shrink: 0;
}

/* ===== Skip link ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  width: auto;
  height: auto;
  padding: 10px 20px;
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--background);
  border-radius: var(--wp--custom--radius--btn);
  font-weight: 700;
  text-decoration: none;
}

/* ===== 共通: コンテナ・ボタン ===== */
.nw-container,
.nw-sec__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.nw-sec__inner--narrow { max-width: 824px; }

.nw-btn-primary,
.nw-btn-outline,
.nw-btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--wp--custom--radius--btn);
  font-size: var(--wp--preset--font-size--base);
  font-weight: 700;
  text-decoration: none;
  transition: background-color var(--wp--custom--transition--base), color var(--wp--custom--transition--base), box-shadow var(--wp--custom--transition--base);
}
.nw-btn-primary {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--background);
}
.nw-btn-primary:hover {
  background: var(--wp--preset--color--primary-dark);
  color: var(--wp--preset--color--background);
  box-shadow: var(--wp--preset--shadow--lift);
}
.nw-btn-outline {
  background: var(--wp--preset--color--background);
  color: var(--wp--preset--color--primary);
  border: 1px solid var(--wp--preset--color--primary);
}
.nw-btn-outline:hover {
  background: var(--wp--preset--color--primary-light);
  color: var(--wp--preset--color--primary-dark);
}
.nw-btn-white {
  background: var(--wp--preset--color--background);
  color: var(--wp--preset--color--primary);
}
.nw-btn-white:hover {
  background: var(--wp--preset--color--primary-light);
  color: var(--wp--preset--color--primary-dark);
  box-shadow: var(--wp--preset--shadow--lift);
}
.nw-btn-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--wp--preset--color--primary);
  font-weight: 700;
  text-decoration: none;
}
.nw-btn-text:hover { text-decoration: underline; }
.nw-btn-text .nw-icon { font-size: 18px; }

/* ===== Header ===== */
/* sticky は body 直下のテンプレートパーツ要素に付ける（wp:html ラッパーの中では即解除されるため） */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 100;
}
.nw-header {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  /* 境界線は box-shadow で描き、ヘッダー全体の高さを --wp--custom--header--height に一致させる */
  box-shadow: inset 0 -1px 0 var(--wp--preset--color--surface-high);
}
.nw-header__inner {
  height: var(--wp--custom--header--height);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nw-header__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.nw-header__brand img {
  height: 32px;
  width: auto;
  display: block;
}
.nw-header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nw-header__nav a {
  color: var(--wp--preset--color--foreground);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--wp--custom--transition--fast), border-color var(--wp--custom--transition--fast);
}
.nw-header__nav a:hover,
.nw-header__nav a[aria-current="page"] {
  color: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
}
.nw-header__nav a.nw-header__cta {
  padding: 9px 18px;
  border: 0;
  border-radius: var(--wp--custom--radius--btn);
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--background);
  font-weight: 700;
}
.nw-header__nav a.nw-header__cta:hover,
.nw-header__nav a.nw-header__cta[aria-current="page"] {
  background: var(--wp--preset--color--primary-dark);
  color: var(--wp--preset--color--background);
}
.nw-header__hamburger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--wp--preset--color--foreground);
}
.nw-mobile-menu {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--wp--preset--color--background);
  z-index: 49;
  padding: 16px 32px 32px;
  flex-direction: column;
  border-top: 1px solid var(--wp--preset--color--surface-high);
  overflow-y: auto;
}
.nw-mobile-menu.is-open { display: flex; }
.nw-mobile-menu a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--wp--preset--color--surface-high);
  font-size: 16px;
  font-weight: 500;
  color: var(--wp--preset--color--foreground);
  text-decoration: none;
}
.nw-mobile-menu a:hover,
.nw-mobile-menu a[aria-current="page"] { color: var(--wp--preset--color--primary); }

/* ===== Footer ===== */
.nw-footer {
  background: var(--wp--preset--color--surface-low);
  border-top: 1px solid var(--wp--preset--color--surface-high);
  font-size: 14px;
}
.nw-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px 48px;
}
.nw-footer__brand { display: inline-block; margin-bottom: 14px; }
.nw-footer__brand img { height: 28px; width: auto; display: block; }
.nw-footer__tagline {
  margin: 0 0 12px;
  color: var(--wp--preset--color--foreground);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.nw-footer__address {
  margin: 0;
  color: var(--wp--preset--color--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.8;
}
.nw-footer__nav,
.nw-footer__sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nw-footer__nav a {
  color: var(--wp--preset--color--foreground);
  font-weight: 500;
  text-decoration: none;
}
.nw-footer__sub {
  margin-top: 16px;
  font-size: 13px;
}
.nw-footer__sub a {
  color: var(--wp--preset--color--muted);
  text-decoration: none;
}
.nw-footer__nav a:hover,
.nw-footer__sub a:hover { color: var(--wp--preset--color--primary); }
.nw-footer__bottom { border-top: 1px solid var(--wp--preset--color--surface-high); }
.nw-footer__bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.nw-footer__copy {
  margin: 0;
  color: var(--wp--preset--color--subtle);
  font-size: 12px;
}
.nw-footer__top {
  color: var(--wp--preset--color--muted);
  font-size: 13px;
  text-decoration: none;
}
.nw-footer__top:hover { color: var(--wp--preset--color--primary); }

/* ===== Sections（汎用） ===== */
.nw-sec { padding: 96px 0; }
.nw-sec--tint { background: var(--wp--preset--color--tint-bg); }
.nw-sec--grey { background: var(--wp--preset--color--surface-low); }
.nw-sec--brand {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--background);
}
.nw-sec--brand .nw-sec__title { color: var(--wp--preset--color--background); }
.nw-sec--brand .nw-sec__eyebrow { color: rgba(255, 255, 255, 0.75); }
.nw-sec__head { text-align: center; margin-bottom: 56px; }
.nw-sec__eyebrow {
  margin: 0 0 12px;
  font-family: var(--wp--preset--font-family--display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wp--preset--color--primary);
}
.nw-sec__title { margin: 0 0 24px; }
.nw-sec__lead {
  max-width: 640px;
  margin: 0 auto;
  color: var(--wp--preset--color--muted);
}
.nw-sec__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

/* ===== トップ ヒーロー ===== */
.nw-hero {
  position: relative;
  display: grid;
  place-items: center;
  /* 移行元 #index_header_content と同じく画面いっぱいに広げる（ヘッダーと管理バーの分を引く） */
  min-height: calc(100vh - var(--wp--custom--header--height) - var(--wp-admin--admin-bar--height, 0px));
  min-height: calc(100svh - var(--wp--custom--header--height) - var(--wp-admin--admin-bar--height, 0px));
  overflow: hidden;
  background: var(--wp--preset--color--tint-bg);
  text-align: center;
}
.nw-hero__bg,
.nw-hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.nw-hero__bg img {
  object-fit: cover;
  object-position: center 45%;
}
.nw-hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--wp--custom--overlay--hero); /* 移行元 #index_slider .item1 .overlay と同じ白 20% */
}
.nw-hero__inner {
  position: relative;
  max-width: 1200px;
  padding: 96px 32px;
}
/* 移行元のカスタム CSS `#index_slider .item1 .catch` 準拠: Work Sans 300・48px（650px 以下 30px）・line-height 1.3・字間指定なし */
.nw-hero__catch {
  margin: 0;
  font-family: var(--wp--preset--font-family--display);
  font-size: var(--wp--preset--font-size--catch);
  font-weight: 300;
  letter-spacing: normal; /* theme.json の h1（0.01em）を打ち消す */
  line-height: 1.3;
  color: var(--wp--preset--color--primary);
}
/* 移行元 #index_slider .desc 準拠: 20px・通常ウェイト・line-height 1.3・上 15px（モバイルの下限だけ 16px に留める） */
.nw-hero__lead {
  margin: 15px 0 40px;
  color: var(--wp--preset--color--foreground);
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.25rem);
  font-weight: 400;
  line-height: 1.3;
}
.nw-hero__ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== トップ 会社紹介 ===== */
.nw-intro { text-align: center; }
.nw-intro__lead {
  margin: 0;
  font-size: var(--wp--preset--font-size--md);
  line-height: 2.1;
}
.nw-intro__images {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
.nw-intro__images li { width: 220px; }
.nw-intro__images img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--wp--preset--shadow--card);
}

/* ===== トップ サービス 3 分野 ===== */
.nw-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.nw-service-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--wp--preset--color--surface-high);
  border-radius: var(--wp--custom--radius--card);
  background: var(--wp--preset--color--background);
  color: var(--wp--preset--color--foreground);
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--wp--preset--shadow--card);
  transition: box-shadow var(--wp--custom--transition--base), transform var(--wp--custom--transition--base);
}
.nw-service-card:hover {
  box-shadow: var(--wp--preset--shadow--lift);
  transform: translateY(-2px);
}
.nw-service-card__media {
  aspect-ratio: 16 / 10;
  background: var(--wp--preset--color--surface-low);
}
.nw-service-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nw-service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 26px 26px;
}
.nw-service-card__title {
  margin: 0 0 14px;
  font-size: var(--wp--preset--font-size--display-s);
}
.nw-service-card:hover .nw-service-card__title { color: var(--wp--preset--color--primary); }
.nw-service-card__list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: var(--wp--preset--color--muted);
  font-size: 14px;
  line-height: 1.8;
}
.nw-service-card__list li {
  position: relative;
  padding-left: 16px;
}
.nw-service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wp--preset--color--secondary);
}
.nw-service-card__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  color: var(--wp--preset--color--primary);
  font-size: 14px;
  font-weight: 700;
}
.nw-service-card__more .nw-icon { font-size: 18px; }

/* ===== トップ 弊社の特徴 / 共通 CTA ===== */
.nw-features,
.nw-cta { text-align: center; }
.nw-features__text,
.nw-cta__text {
  max-width: 720px;
  margin: 0 auto;
  font-size: var(--wp--preset--font-size--md);
  line-height: 2.1;
}
.nw-cta { padding: 80px 0; }

/* ===== ページヘッダー（会社案内・サービス・採用・お問い合わせ・ポリシー） ===== */
.nw-page-header {
  position: relative;
  padding: 56px 0 48px;
  background: var(--wp--preset--color--surface);
  border-bottom: 1px solid var(--wp--preset--color--surface-high);
  overflow: hidden;
}
.nw-page-header.has-image {
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 48px;
  border-bottom: 0;
}
.nw-page-header__bg,
.nw-page-header__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.nw-page-header__bg img { object-fit: cover; }
/* 採用情報・採用応募フォーム: キービジュアル（自宅で働く人物）の頭が切れないよう上寄せで切り出す */
.nw-page-header--recruit .nw-page-header__bg img { object-position: center 15%; }
.nw-page-header__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.82) 70%, rgba(255, 255, 255, 0.92) 100%);
}
.nw-page-header__inner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.nw-page-header .nw-breadcrumb { margin-bottom: 16px; }
.nw-page-header__title { margin: 0; }
.nw-page-header__lead {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--preset--font-size--md);
}
.nw-page-header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.nw-page-header__nav a {
  padding: 8px 16px;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--wp--custom--radius--pill);
  background: var(--wp--preset--color--background);
  color: var(--wp--preset--color--foreground);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--wp--custom--transition--fast), color var(--wp--custom--transition--fast), border-color var(--wp--custom--transition--fast);
}
.nw-page-header__nav a:hover {
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
}

/* ===== 本文（ごあいさつ・ポリシー等の文章） ===== */
.nw-prose {
  font-size: var(--wp--preset--font-size--md);
  line-height: 2;
}
.nw-prose p { margin: 0 0 1.5em; }
.nw-prose p:last-child { margin-bottom: 0; }
.nw-prose ul,
.nw-prose ol { margin: 0 0 1.5em; padding-left: 1.6em; }
.nw-prose li { margin-bottom: 0.4em; }
.nw-prose a:hover { text-decoration: underline; }
.nw-prose--center { text-align: center; }
.nw-signature {
  margin-top: 2em;
  text-align: right;
  font-weight: 700;
}

/* ===== 会社案内 ===== */
.nw-greeting .nw-sec__eyebrow,
.nw-greeting .nw-sec__title { text-align: center; }
.nw-greeting .nw-sec__title { margin-bottom: 40px; }

.nw-mission { text-align: center; }
.nw-mission__statement {
  margin: 0 0 32px;
  font-size: var(--wp--preset--font-size--display-m);
  font-weight: 700;
  color: var(--wp--preset--color--primary);
}
.nw-mission__image {
  margin: 48px auto;
  border-radius: var(--wp--custom--radius--card);
  overflow: hidden;
  box-shadow: var(--wp--preset--shadow--card);
}
.nw-mission__image img { display: block; width: 100%; height: auto; }
.nw-mission__sub { margin: 0 0 20px; }

.nw-company .nw-sec__eyebrow,
.nw-company .nw-sec__title,
.nw-access .nw-sec__eyebrow,
.nw-access .nw-sec__title,
.nw-recruit .nw-sec__eyebrow,
.nw-recruit .nw-sec__title { text-align: center; }
.nw-company .nw-sec__title,
.nw-access .nw-sec__title,
.nw-recruit .nw-sec__title { margin-bottom: 40px; }

/* 定義リスト（企業情報・募集要項） */
.nw-dl {
  margin: 0;
  border-top: 1px solid var(--wp--preset--color--surface-high);
}
.nw-dl > div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 8px 24px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--wp--preset--color--surface-high);
}
.nw-dl dt {
  font-weight: 700;
  color: var(--wp--preset--color--foreground);
}
.nw-dl dd {
  margin: 0;
  line-height: 1.9;
}
.nw-dl dd p { margin: 0; }
.nw-dl dd p + p { margin-top: 0.3em; }
.nw-dl__list { margin: 0; padding-left: 1.5em; }

/* アクセス */
.nw-access__address {
  margin: 0 0 24px;
  text-align: center;
  font-style: normal;
  line-height: 1.9;
}
.nw-access__map {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--wp--preset--color--surface-high);
  border-radius: var(--wp--custom--radius--card);
  overflow: hidden;
  background: var(--wp--preset--color--surface-high);
}
.nw-access__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.nw-access__link { margin: 20px 0 0; text-align: center; }

/* ===== サービス（3 分野の詳細） ===== */
.nw-service-section { padding: 0 0 80px; }
.nw-service-section--alt { background: var(--wp--preset--color--surface); }
.nw-service-section__band {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 240px;
  margin-bottom: 56px;
  overflow: hidden;
  background: var(--wp--preset--color--primary-dark);
}
.nw-service-section__bg,
.nw-service-section__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.nw-service-section__bg img { object-fit: cover; }
.nw-service-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 79, 39, 0.88) 0%, rgba(0, 79, 39, 0.55) 60%, rgba(0, 79, 39, 0.35) 100%);
}
.nw-service-section__band-inner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px;
  color: var(--wp--preset--color--background);
}
.nw-service-section__num {
  margin: 0 0 8px;
  font-family: var(--wp--preset--font-family--display);
  font-size: 14px;
  letter-spacing: 0.2em;
  opacity: 0.8;
}
.nw-service-section__title {
  margin: 0;
  color: var(--wp--preset--color--background);
}
.nw-service-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.nw-service-item {
  padding: 28px 30px;
  border: 1px solid var(--wp--preset--color--surface-high);
  border-radius: var(--wp--custom--radius--card);
  background: var(--wp--preset--color--surface-low);
}
.nw-service-section--alt .nw-service-item { background: var(--wp--preset--color--background); }
.nw-service-item__title {
  margin: 0 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--wp--preset--color--primary);
  font-size: var(--wp--preset--font-size--lg);
  line-height: 1.5;
}
.nw-service-item__text {
  margin: 0;
  color: var(--wp--preset--color--muted);
  font-size: 14px;
  line-height: 1.9;
}
.nw-service-section__cases {
  margin: 32px 0 0;
  text-align: right;
}

/* ===== 採用情報 ===== */
/* 募集要項: 選考プロセスのステップ・注記 */
.nw-dl dd p + .nw-steps,
.nw-dl dd p + .nw-dl__note,
.nw-dl dd .nw-steps + .nw-dl__note { margin-top: 10px; }
.nw-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nw-steps__item { display: inline-flex; align-items: center; }
.nw-steps__item:not(:last-child)::after {
  /* ステップ間の矢印（CSS で描く）。後ろに付けることで、折り返しても行頭に矢印が来ない */
  content: '';
  width: 7px;
  height: 7px;
  margin: 0 12px 0 8px;
  border-top: 2px solid var(--wp--preset--color--subtle);
  border-right: 2px solid var(--wp--preset--color--subtle);
  transform: rotate(45deg);
}
.nw-steps__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 5px;
  border: 1px solid var(--wp--preset--color--surface-high);
  border-radius: var(--wp--custom--radius--pill);
  background: var(--wp--preset--color--surface-low);
  font-size: var(--wp--preset--font-size--base);
  font-weight: 500;
  line-height: 1.5;
}
.nw-steps__num {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--background);
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 700;
}
.nw-dl__note {
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--preset--font-size--sm);
}

.nw-recruit-message { text-align: center; }
.nw-recruit-message__catch {
  margin: 0 0 28px;
  font-size: var(--wp--preset--font-size--display-s);
  font-weight: 700;
  color: var(--wp--preset--color--primary);
}
.nw-recruit-message .nw-prose { text-align: left; }

/* ===== フォーム（お問い合わせ・採用応募） ===== */
.nw-form-section { padding: 64px 0 96px; }
.nw-form-card {
  padding: 40px;
  border: 1px solid var(--wp--preset--color--surface-high);
  border-radius: var(--wp--custom--radius--card);
  background: var(--wp--preset--color--background);
  box-shadow: var(--wp--preset--shadow--card);
}
.nw-form-card__title {
  margin: 0 0 8px;
  font-size: var(--wp--preset--font-size--display-s);
}
.nw-form-card__lead {
  margin: 0 0 28px;
  color: var(--wp--preset--color--muted);
  font-size: 14px;
}
.nw-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.nw-field-group { margin-bottom: 20px; }
.nw-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--wp--preset--color--foreground);
}
.nw-required {
  margin-left: 4px;
  color: var(--wp--preset--color--warning);
  font-size: 12px;
  font-weight: 700;
}
.nw-optional {
  margin-left: 4px;
  color: var(--wp--preset--color--muted);
  font-size: 12px;
  font-weight: 400;
}
/* CF7 の input / textarea / select に直接付く */
input.nw-field,
select.nw-field,
textarea.nw-field {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 8px;
  background: var(--wp--preset--color--background);
  color: var(--wp--preset--color--foreground);
  font-family: inherit;
  font-size: 16px; /* 16px 未満だと iOS がフォーカス時に拡大する */
  line-height: 1.5;
  transition: border-color var(--wp--custom--transition--fast), box-shadow var(--wp--custom--transition--fast);
}
input.nw-field:focus,
select.nw-field:focus,
textarea.nw-field:focus {
  outline: none;
  border-color: var(--wp--preset--color--primary);
  box-shadow: 0 0 0 3px var(--wp--preset--color--primary-light);
}
textarea.nw-field { min-height: 180px; resize: vertical; line-height: 1.7; }
.wpcf7-form .hidden-fields-container {
  display: contents;
  border: 0;
  margin: 0;
  padding: 0;
}
.wpcf7-form-control-wrap { display: block; }
.nw-consent {
  margin: 8px 0 24px;
  padding: 16px 20px;
  border-radius: 8px;
  background: var(--wp--preset--color--surface-low);
  font-size: 14px;
  line-height: 1.8;
}
.nw-consent__text { margin: 0 0 10px; }
.nw-consent__text a { text-decoration: underline; }
.nw-consent .wpcf7-acceptance label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
}
.nw-consent .wpcf7-acceptance input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--wp--preset--color--primary);
}
.nw-consent .wpcf7-list-item { margin: 0; }
.nw-form-actions { text-align: center; }
.wpcf7-form input.nw-submit,
.wpcf7-form input[type="submit"] {
  min-height: 48px;
  padding: 12px 40px;
  border: 0;
  border-radius: var(--wp--custom--radius--btn);
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--background);
  font-family: inherit;
  font-size: var(--wp--preset--font-size--base);
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--wp--custom--transition--base), box-shadow var(--wp--custom--transition--base);
}
.wpcf7-form input.nw-submit:hover,
.wpcf7-form input[type="submit"]:hover {
  background: var(--wp--preset--color--primary-dark);
  box-shadow: var(--wp--preset--shadow--lift);
}
/* 同意チェック前は CF7 が送信ボタンを disabled にする */
.wpcf7-form input[type="submit"]:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.wpcf7-form .wpcf7-spinner { display: block; margin: 12px auto 0; }
.wpcf7-not-valid-tip {
  margin-top: 6px;
  color: var(--wp--preset--color--warning);
  font-size: 13px;
}
/* CF7 の読み上げ専用領域（エラー一覧と状態通知）は CF7 既定 CSS と同じく視覚的に隠す。
   各欄の下の .wpcf7-not-valid-tip と送信ボタン下の .wpcf7-response-output が見た目の表示を担う */
.wpcf7 .screen-reader-response {
  position: absolute;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  word-wrap: normal !important;
}
/* CF7 既定 CSS を読まないので、送信前の空の応答欄は自前で隠す（CF7 既定 CSS と同じ状態クラス＋空要素）。
   注意: この要素の aria-hidden="true" は CF7 が意図して付けたまま（読み上げは .screen-reader-response が担う）で、
   送信後も変わらない。[aria-hidden="true"] で隠すと完了メッセージが永遠に出ない（2026-09-06 に本番で発生） */
.wpcf7-form.init .wpcf7-response-output,
.wpcf7-form.resetting .wpcf7-response-output,
.wpcf7-form.submitting .wpcf7-response-output,
.wpcf7-form .wpcf7-response-output:empty { display: none; }
.wpcf7-form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 8px;
  font-size: 14px;
}
.wpcf7-form.sent .wpcf7-response-output {
  border-color: var(--wp--preset--color--success);
  background: var(--wp--preset--color--success-bg);
  color: var(--wp--preset--color--success);
}
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output {
  border-color: var(--wp--preset--color--warning);
  background: var(--wp--preset--color--warning-bg);
  color: var(--wp--preset--color--warning);
}
.nw-form-unavailable {
  padding: 24px;
  border-radius: 8px;
  background: var(--wp--preset--color--surface-low);
  color: var(--wp--preset--color--muted);
  text-align: center;
}
.nw-form-section__back { margin: 24px 0 0; text-align: center; }

/* お問い合わせ: フォーム + 会社情報 */
.nw-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.nw-contact-card {
  padding: 28px;
  border: 1px solid var(--wp--preset--color--surface-high);
  border-radius: var(--wp--custom--radius--card);
  background: var(--wp--preset--color--background);
}
.nw-contact-card__title {
  margin: 0 0 12px;
  font-size: var(--wp--preset--font-size--lg);
}
.nw-contact-card__address {
  margin: 0 0 12px;
  color: var(--wp--preset--color--muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.8;
}
.nw-contact-card__note {
  margin: 0 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--wp--preset--color--surface-high);
  color: var(--wp--preset--color--muted);
  font-size: 13px;
}

/* ===== ポリシー文書 ===== */
.nw-policy { padding: 64px 0 96px; }
.nw-prose--policy h2,
.nw-prose--policy h3 {
  margin: 2.2em 0 0.7em;
  font-size: var(--wp--preset--font-size--lg);
  line-height: 1.5;
}
.nw-prose--policy h2.nw-policy__heading {
  margin-top: 0;
  font-size: var(--wp--preset--font-size--display-s);
}
.nw-policy__contact {
  margin: 1.5em 0;
  padding: 20px 24px;
  border-radius: 8px;
  background: var(--wp--preset--color--surface-low);
  font-size: 15px;
}
.nw-policy__contact p { margin: 0; }
.nw-policy__dates {
  margin-top: 3em;
  text-align: right;
  color: var(--wp--preset--color--muted);
  font-size: 14px;
}

/* ===== パンくず（導入事例で共用） ===== */
.nw-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--wp--preset--color--subtle);
}
.nw-breadcrumb a {
  color: var(--wp--preset--color--subtle);
  text-decoration: none;
}
.nw-breadcrumb a:hover { color: var(--wp--preset--color--primary); }
.nw-breadcrumb--center { justify-content: center; }

/* ===== 導入事例 記事ヘッダー ===== */
.nw-case-header {
  background: var(--wp--preset--color--surface);
  border-bottom: 1px solid var(--wp--preset--color--surface-high);
  padding: 48px 0 56px;
}
.nw-case-header__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}
.nw-case-cat-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 12px;
  border-radius: var(--wp--custom--radius--pill);
  background: var(--wp--preset--color--primary-light);
  color: var(--wp--preset--color--primary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.nw-case-header__title { margin: 0 0 20px; }
.nw-case-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: 0;
  font-size: 14px;
}
.nw-case-header__meta div { display: flex; gap: 8px; }
.nw-case-header__meta dt {
  color: var(--wp--preset--color--subtle);
  font-weight: 500;
}
.nw-case-header__meta dt::after { content: ':'; }
.nw-case-header__meta dd { margin: 0; color: var(--wp--preset--color--foreground); }
.nw-case-header__thumb {
  margin: 32px 0 0;
  border-radius: var(--wp--custom--radius--card);
  overflow: hidden;
  box-shadow: var(--wp--preset--shadow--card);
}
.nw-case-header__thumb img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== 導入事例 本文（prose） ===== */
.nw-case-body {
  padding: 56px 0 24px;
}
.nw-case-body .wp-block-post-content {
  font-size: var(--wp--preset--font-size--md);
  line-height: 1.9;
}
.nw-case-body h2 {
  margin: 2.2em 0 0.8em;
  padding-bottom: 0.4em;
  border-bottom: 2px solid var(--wp--preset--color--surface-high);
}
.nw-case-body h3 { margin: 1.8em 0 0.6em; }
.nw-case-body :is(h2, h3) { scroll-margin-top: 88px; }
.nw-case-body p { margin: 0 0 1.4em; }
.nw-case-body ul,
.nw-case-body ol { margin: 0 0 1.4em; padding-left: 1.6em; }
.nw-case-body li { margin-bottom: 0.4em; }
.nw-case-body a:hover { text-decoration: underline; }
.nw-case-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--wp--preset--color--surface-high);
}
.nw-case-body figure.wp-block-image { margin: 1.6em 0; }
.nw-case-body figcaption {
  margin-top: 0.6em;
  color: var(--wp--preset--color--subtle);
  font-size: 13px;
  text-align: center;
}
.nw-case-body blockquote {
  margin: 1.6em 0;
  padding: 0.4em 1.2em;
  border-left: 4px solid var(--wp--preset--color--primary-light);
  color: var(--wp--preset--color--muted);
}
.nw-case-body blockquote p:last-child { margin-bottom: 0; }
.nw-case-body figure.wp-block-table { margin: 1.6em 0; overflow-x: auto; }
.nw-case-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.nw-case-body th,
.nw-case-body td {
  padding: 10px 14px;
  border: 1px solid var(--wp--preset--color--surface-high);
  text-align: left;
  vertical-align: top;
}
.nw-case-body th {
  background: var(--wp--preset--color--surface-low);
  font-weight: 700;
}
.nw-case-body img.nw-lightbox-target { cursor: zoom-in; }
.nw-case-body img.nw-lightbox-target:focus-visible {
  outline: 3px solid var(--wp--preset--color--primary);
  outline-offset: 2px;
}

/* 注釈（> [!NOTE] / [!TIP] / [!WARNING] — bin/case-sync.php が生成） */
.nw-case-body .nw-callout {
  margin: 1.6em 0;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid var(--wp--preset--color--surface-high);
  background: var(--wp--preset--color--surface-low);
}
.nw-case-body .nw-callout p { margin: 0; }
.nw-case-body .nw-callout p + p { margin-top: 0.8em; }
.nw-case-body .nw-callout p.nw-callout__label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.nw-case-body .nw-callout__label .nw-icon { font-size: 18px; }
.nw-case-body .nw-callout--note {
  background: var(--wp--preset--color--tint-bg);
  border-color: var(--wp--preset--color--primary-light);
}
.nw-case-body .nw-callout--note .nw-callout__label { color: var(--wp--preset--color--primary); }
.nw-case-body .nw-callout--tip {
  background: var(--wp--preset--color--success-bg);
  border-color: rgba(46, 125, 50, 0.25);
}
.nw-case-body .nw-callout--tip .nw-callout__label { color: var(--wp--preset--color--success); }
.nw-case-body .nw-callout--warning {
  background: var(--wp--preset--color--warning-bg);
  border-color: rgba(245, 124, 0, 0.3);
}
.nw-case-body .nw-callout--warning .nw-callout__label { color: var(--wp--preset--color--warning); }

/* ライトボックス */
.nw-lightbox {
  max-width: min(96vw, 1400px);
  max-height: 96vh;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  overflow: visible;
}
.nw-lightbox::backdrop { background: rgba(0, 0, 0, 0.8); }
.nw-lightbox__figure { margin: 0; text-align: center; }
.nw-lightbox__img {
  display: block;
  max-width: 96vw;
  max-height: 88vh;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
  cursor: zoom-out;
}
.nw-lightbox__caption {
  margin-top: 12px;
  color: #fff;
  font-size: 14px;
}
.nw-lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.nw-lightbox__close:hover { background: rgba(255, 255, 255, 0.3); }

/* ===== 導入事例 一覧（ヒーロー・タブ・グリッド） ===== */
.nw-case-archive-hero {
  padding: 56px 0 40px;
  background: var(--wp--preset--color--surface);
  border-bottom: 1px solid var(--wp--preset--color--surface-high);
  text-align: center;
}
.nw-case-archive-hero__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
}
.nw-case-archive-hero__title { margin: 0 0 12px; }
.nw-case-archive-hero__lead {
  margin: 0 auto 28px;
  color: var(--wp--preset--color--muted);
}
.nw-case-search-form {
  display: flex;
  max-width: 520px;
  margin: 0 auto 24px;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--wp--custom--radius--pill);
  background: var(--wp--preset--color--background);
  overflow: hidden;
}
.nw-case-search-form:focus-within {
  border-color: var(--wp--preset--color--primary);
  box-shadow: 0 0 0 3px var(--wp--preset--color--primary-light);
}
.nw-case-search-form__input {
  flex: 1;
  min-width: 0;
  padding: 12px 20px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
}
.nw-case-search-form__input:focus { outline: none; }
.nw-case-search-form__submit {
  padding: 0 22px;
  border: 0;
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--background);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.nw-case-search-form__submit:hover { background: var(--wp--preset--color--primary-dark); }
.nw-case-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.nw-case-cat-tab {
  padding: 8px 16px;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--wp--custom--radius--pill);
  background: var(--wp--preset--color--background);
  color: var(--wp--preset--color--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--wp--custom--transition--fast), color var(--wp--custom--transition--fast);
}
.nw-case-cat-tab:hover { color: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); }
.nw-case-cat-tab.is-active {
  background: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--background);
}
.nw-case-list { padding: 56px 0 96px; }
.nw-case-list__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.nw-case-list__empty {
  margin: 40px 0;
  color: var(--wp--preset--color--muted);
  text-align: center;
}
.nw-case-list__back { margin-top: 48px; text-align: center; }
.nw-case-list .pagination {
  margin-top: 48px;
  text-align: center;
}
.nw-case-list .pagination .nav-links {
  display: inline-flex;
  gap: 4px;
}
.nw-case-list .page-numbers {
  display: inline-block;
  min-width: 40px;
  padding: 8px 12px;
  border-radius: var(--wp--custom--radius--btn);
  color: var(--wp--preset--color--muted);
  text-decoration: none;
}
.nw-case-list .page-numbers.current {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--background);
}
.nw-case-list a.page-numbers:hover { background: var(--wp--preset--color--surface-low); }

/* カード */
.nw-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.nw-case-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--wp--preset--color--surface-high);
  border-radius: var(--wp--custom--radius--card);
  background: var(--wp--preset--color--background);
  color: var(--wp--preset--color--foreground);
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--wp--preset--shadow--card);
  transition: box-shadow var(--wp--custom--transition--base), transform var(--wp--custom--transition--base);
}
.nw-case-card:hover {
  box-shadow: var(--wp--preset--shadow--lift);
  transform: translateY(-2px);
}
.nw-case-card__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--wp--preset--color--surface-low);
}
/* 元画像が正方形でも 4:3 に揃える（aspect-ratio の自動最小高さを画像に引き伸ばされないよう絶対配置にする） */
.nw-case-card__thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nw-case-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 22px;
}
.nw-case-card__cat {
  margin: 0;
  color: var(--wp--preset--color--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.nw-case-card__title {
  margin: 0;
  font-size: var(--wp--preset--font-size--lg);
  line-height: 1.5;
}
.nw-case-card:hover .nw-case-card__title { color: var(--wp--preset--color--primary); }
.nw-case-card__client {
  margin: 0;
  color: var(--wp--preset--color--muted);
  font-size: 13px;
  font-weight: 500;
}
.nw-case-card__excerpt {
  margin: 0;
  color: var(--wp--preset--color--muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nw-case-card__date {
  margin: auto 0 0;
  padding-top: 8px;
  color: var(--wp--preset--color--subtle);
  font-size: 12px;
}

/* ===== 導入事例 関連事例 ===== */
.nw-case-related {
  padding: 48px 0 96px;
  background: var(--wp--preset--color--surface);
  border-top: 1px solid var(--wp--preset--color--surface-high);
}
.nw-case-related__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.nw-case-related__heading {
  margin: 0 0 28px;
  font-size: var(--wp--preset--font-size--display-s);
}
.nw-case-related__back { margin-top: 40px; text-align: center; }

/* ===== 404 ===== */
.nw-404 { padding: 96px 0 120px; text-align: center; }
.nw-404__code {
  margin: 0;
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(5rem, 4rem + 6vw, 9rem);
  font-weight: 300;
  line-height: 1;
  color: var(--wp--preset--color--primary-light);
}
.nw-404__title { margin: 0 0 16px; }
.nw-404__text { margin: 0; color: var(--wp--preset--color--muted); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .nw-case-grid,
  .nw-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .nw-header__nav { display: none; }
  .nw-header__hamburger { display: inline-flex; }
  .nw-header__inner,
  .nw-footer__inner,
  .nw-footer__bottom-inner,
  .nw-sec__inner,
  .nw-hero__inner,
  .nw-page-header__inner,
  .nw-service-section__band-inner,
  .nw-case-header__inner,
  .nw-case-archive-hero__inner,
  .nw-case-list__inner,
  .nw-case-related__inner { padding-left: 20px; padding-right: 20px; }
  .nw-sec { padding: 64px 0; }
  .nw-sec__head { margin-bottom: 36px; }
  .nw-hero__inner { padding-top: 64px; padding-bottom: 64px; }
  .nw-intro__images { gap: 12px; }
  .nw-intro__images li { width: 26vw; }
  .nw-case-grid,
  .nw-services__grid,
  .nw-service-items,
  .nw-contact-grid,
  .nw-grid-2 { grid-template-columns: 1fr; }
  .nw-case-grid,
  .nw-services__grid { gap: 20px; }
  .nw-page-header { padding: 40px 0 32px; }
  .nw-page-header.has-image { min-height: 280px; padding-top: 96px; }
  .nw-dl > div { grid-template-columns: 1fr; gap: 4px; padding: 16px 4px; }
  .nw-steps { gap: 8px 0; }
  .nw-service-section__band { min-height: 180px; margin-bottom: 40px; }
  .nw-service-section { padding-bottom: 56px; }
  .nw-service-section__cases { text-align: center; }
  .nw-form-card { padding: 24px 20px; }
  .nw-access__map { aspect-ratio: 4 / 3; }
  .nw-case-body { padding-top: 40px; }
  .nw-footer__inner { flex-direction: column; padding-top: 40px; }
  .nw-footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 480px) {
}
