/* ===== 改善版（SPChange Next）追加スタイル =====
   既存の site.css / spc_css.css / contact_btn.css の後に読み込む。色は既存のテーマ青（#0972c1）に合わせる。 */

/* ---- ファーストビュー ---- */
.nxEyebrow { margin: 0 0 14px; color: #5b6b7c; font-size: 14px; letter-spacing: .06em; text-align: center; }
.nxHero .siteMessage__desc { max-width: 860px; margin-left: auto; margin-right: auto; }
.nxCta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 30px 0 0; }
.nxCtaSub { margin: 16px 0 0; text-align: center; font-size: 14px; }
.nxCtaSub a, .nxCtaSub a:link, .nxCtaSub a:visited { color: #0972c1; text-decoration: underline; text-underline-offset: 3px; }

/* ゴーストボタン（枠線のみ）。contact_btn.css の詳細度に合わせる */
.container .contactBtn.contactBtn--ghost,
.container .contactBtn.contactBtn--ghost:link,
.container .contactBtn.contactBtn--ghost:visited {
  background: #fff; color: #0972c1; border: 2px solid #0972c1; padding: 12px 42px;
}
.container .contactBtn.contactBtn--ghost:hover { background: #eef5fc; color: #0253af; box-shadow: none; }

/* ---- ヒーロー画像：どの画面サイズでも、画面の高さの半分以下に収める ----
   （元のCSSは、PCで400px固定、タブレット・スマホでは画像を幅いっぱいに出すため、縦が長くなっていた）*/
.kvContainer .kvImage { position: relative; overflow: hidden; height: clamp(140px, 32vh, 260px); background-repeat: no-repeat; background-position: center center; background-size: cover; }
.kvContainer .kvImage img { display: none; }
@media only screen and (min-width: 980px) {
  .kvContainer .kvImage { height: clamp(160px, 42vh, 400px); }
}

/* 文の途中で折り返さない（「お客様の製品化を支援します。」を、1かたまりにする）*/
.nxNb { display: inline-block; white-space: nowrap; }

/* ---- セクション共通 ---- */
.nxSection { padding: 64px 0; }
.nxSection--tint { background: #f2f8fc; }
.nxSection .wrap { max-width: 1040px; }
.nxTitle { margin: 0 0 12px; padding: 0 0 12px; border-bottom: 2px solid #0972c1; color: #0972c1; font-size: 26px; font-weight: 700; line-height: 1.4; }
.nxLead { margin: 0 0 28px; color: #1f2d3d; font-size: 15px; line-height: 1.9; }
.nxMore { margin: 24px 0 0; text-align: right; font-size: 14px; }
.nxLink, .nxLink:link, .nxLink:visited { color: #0972c1; text-decoration: underline; text-underline-offset: 3px; }
.nxLink:hover { color: #0253af; }

/* ---- カード ---- */
.nxCards { display: grid; gap: 20px; }
.nxCards--2 { grid-template-columns: repeat(2, 1fr); }
.nxCards--4 { grid-template-columns: repeat(4, 1fr); }
.nxCard { box-sizing: border-box; padding: 26px 26px 22px; border: 1px solid #d9e5f1; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(9, 114, 193, .06); }
.nxCard--small { padding: 20px 20px 16px; }
.nxCard__tag { display: inline-block; margin: 0 0 10px; padding: 1px 12px; border: 1px solid #0972c1; border-radius: 999px; color: #0972c1; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.nxCard__title { margin: 0 0 10px; padding: 0; border: none; background: none; color: #1f2d3d; font-size: 18px; font-weight: 700; line-height: 1.5; }
.nxCard__text { margin: 0 0 12px; font-size: 14px; line-height: 1.8; }
.nxCard__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0 0; font-size: 14px; }
.nxList { margin: 0 0 4px; padding: 0 0 0 1.4em; list-style: disc outside; font-size: 14px; line-height: 1.9; }
.nxList li { display: list-item; margin: 0; padding: 0; list-style: disc outside; }

/* ---- 対応範囲（フロー図）---- */
.nxFlow { display: flex; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.nxFlow__step { position: relative; flex: 1 1 0; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 16px 16px; border: 1px solid #d9e5f1; border-radius: 10px; background: #fff; font-size: 13px; line-height: 1.6; text-align: center; }
.nxFlow__step strong { color: #1f2d3d; font-size: 15px; line-height: 1.5; }
.nxFlow__step span:last-child { color: #5b6b7c; }
.nxFlow__no { align-self: center; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #0972c1; color: #fff; font-size: 14px; font-weight: 700; }
.nxFlow__step:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -12px; width: 9px; height: 9px; border-top: 2px solid #0972c1; border-right: 2px solid #0972c1; transform: translateY(-50%) rotate(45deg); }

/* ---- FAQへの導線 ---- */
.nxChips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.nxChips li { margin: 0; padding: 0; }
.nxChips a, .nxChips a:link, .nxChips a:visited { display: block; padding: 9px 20px; border: 1px solid #d9e5f1; border-radius: 999px; background: #fff; color: #0972c1; font-size: 14px; line-height: 1.6; text-decoration: none; transition: background .2s, border-color .2s; }
.nxChips a:hover { border-color: #0972c1; background: #eef5fc; }

/* ---- 新着情報（カテゴリで絞り込み）---- */
.spcNewsTabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; padding: 0 8px; }
.spcNewsTab { padding: 5px 16px; border: 1px solid #d9e5f1; border-radius: 999px; background: #fff; color: #5b6b7c; font: inherit; font-size: 13px; cursor: pointer; }
.spcNewsTab:hover { border-color: #0972c1; color: #0972c1; }
.spcNewsTab.is--on { border-color: #0972c1; background: #0972c1; color: #fff; font-weight: 700; }
.spcNews__item[hidden] { display: none; }

/* ---- メールアドレス（スパム対策のため、JavaScriptで組み立てて表示）---- */
.spcMail a, .spcMail a:link, .spcMail a:visited { color: #0972c1; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---- お問い合わせフォームの選択項目 ---- */
.formItem select.spcSelect { box-sizing: border-box; width: 100%; max-width: 420px; padding: 8px 10px; border: 1px solid #aab7c4; border-radius: 4px; background: #fff; font: inherit; font-size: 15px; }

/* ---- チップ設計技術の一覧（事業内容ページ）---- */
.nxChip { margin: 0 0 40px; }
.nxChip__lead { margin: 18px 0 20px; font-size: 15px; line-height: 1.9; }
.nxSpecWrap { overflow-x: auto; }
.nxSpec { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.nxSpec th, .nxSpec td { padding: 10px 14px; border: 1px solid #d9e5f1; text-align: left; vertical-align: top; font-weight: 400; }
.nxSpec thead th { background: #0972c1; color: #fff; font-weight: 700; }
.nxSpec .nxSpec__cat { width: 14%; background: #eef5fc; color: #0972c1; font-weight: 700; }
.nxSpec .nxSpec__item { width: 26%; background: #fcfcfc; color: #1f2d3d; font-weight: 700; }
.nxSpec ul { margin: 0; padding: 0 0 0 1.3em; list-style: disc outside; }
.nxSpec li { display: list-item; margin: 0; padding: 0; list-style: disc outside; }
.nxSpec__ref { margin: 6px 0 0; color: #5b6b7c; font-size: 13px; }
.nxSpec__note { margin: 12px 0 0; color: #5b6b7c; font-size: 12px; line-height: 1.8; }
.nxChip__cta { margin: 24px 0 0; text-align: center; }

/* ---- スマホ・タブレット ---- */
@media only screen and (max-width: 979px) {
  .nxCards--4 { grid-template-columns: repeat(2, 1fr); }
  .nxFlow { flex-direction: column; gap: 22px; }
  .nxFlow__step:not(:last-child)::after { top: auto; right: 50%; bottom: -17px; transform: translateX(50%) rotate(135deg); }
}
@media only screen and (max-width: 640px) {
  .nxSpec { min-width: 560px; }
  .nxSection { padding: 44px 0; }
  .nxTitle { font-size: 22px; }
  .nxCards--2, .nxCards--4 { grid-template-columns: 1fr; }
  .nxCta { flex-direction: column; align-items: stretch; padding: 0 16px; }
  .nxCta .contactBtn { text-align: center; }
  .nxMore { text-align: left; }
}
