/* NextScale お問い合わせフォーム（/contact/・/consultation/） */

/* ページ全体（ストックサン /order/ 参考）：上部に実績バッジと見出し、その下に説明と灰色のフォームカードを中央寄せで並べる */
.p-lp:has(.ns-cf-page),
.p-lp-main:has(.ns-cf-page) { background: #fff; }

.ns-cf-hero {
  padding: 32px 24px 28px;
  background: #fff;
  text-align: center;
}

.ns-cf-hero__badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 40px;
  border-radius: 4px;
  background: #5f6368;
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: .06em;
}

.ns-cf-hero__badge small { margin-left: 4px; font-size: 11px; opacity: .85; }

.ns-cf-hero__title {
  margin: 0;
  color: #1a1a1a;
  font-size: clamp(28px, 2vw + 12px, 44px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .06em;
}

.ns-cf-page {
  box-sizing: border-box;
  max-width: 1420px;
  margin: 0 auto;
  padding: 8px 70px 96px;
  gap: 40px;
  background: #fff;
}
.ns-cf-page .p-lp-form__left { flex: 1 1 0; min-width: 0; justify-content: flex-start; background: transparent; }
.ns-cf-page .p-lp-form__right { flex: 1 1 0; min-width: 0; background: transparent; }
/* 左欄：説明 → ご支援実績 → 代表 の順（ストックサン /order/ と同じ並び・余白） */
.ns-cf-page .p-lp-form__left-inner { max-width: none; gap: 48px; padding: 4px 0 0; }
.ns-cf-page .p-lp-form__lead-block { order: 1; }
.ns-cf-page .p-lp-form__block--support { order: 2; }
.ns-cf-page .ns-cf-person { order: 3; }
.ns-cf-page .p-lp-form__right-inner {
  align-self: flex-start;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  gap: 16px;
  padding: 24px 40px 36px;
  border-radius: 4px;
  background: #f7f8fa;
  box-shadow: none;
}
.ns-cf-page .p-lp-form__lead { font-size: 15px; line-height: 1.9; letter-spacing: .04em; }
.ns-cf-page .p-lp-form__block { gap: 0; margin: 0; padding: 0; border: 0; background: transparent; }
.ns-cf-page .p-lp-form__block-title {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  color: #1a1a1a;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .04em;
}
.ns-cf-page .p-lp-form__block-title::before,
.ns-cf-page .p-lp-form__block-title::after { content: none; }
.ns-cf-page .p-lp-form__block-title-sub { margin-left: 4px; color: #777; font-size: 14px; font-weight: 400; }

/* ご支援実績：枠なし・ロゴを4列で均等に並べ、余白を広く取る */
.ns-cf-page .p-lp-form__logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 28px 32px;
  margin: 0;
  padding: 8px 0 0;
  border: 0;
  background: transparent;
}
.ns-cf-page .p-lp-form__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; margin: 0; padding: 0; border: 0; background: transparent; }
.ns-cf-page .p-lp-form__logo img { width: auto; max-width: 100%; height: auto; max-height: 40px; object-fit: contain; }

/* 代表が対応します：写真は正方形で固定（伸ばさない）。右に弊社の強み */
.ns-cf-person__lead { margin: -12px 0 24px; color: #444; font-size: 15px; line-height: 1.8; }

.ns-cf-person__body {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.ns-cf-person__photo {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

.ns-cf-person__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 12%;
}

.ns-cf-person__photo figcaption { padding: 10px 8px 12px; color: #1a1a1a; font-size: 15px; font-weight: 700; line-height: 1.4; text-align: center; }
.ns-cf-person__photo figcaption span { display: block; margin-bottom: 2px; color: #777; font-size: 11px; font-weight: 400; letter-spacing: .06em; }

.ns-cf-person__list { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }

.ns-cf-person__list li { display: flex; gap: 12px; margin: 0; padding: 0 0 16px; border-bottom: 1px solid #eceef2; }
.ns-cf-person__list li:last-child { padding-bottom: 0; border-bottom: 0; }

.ns-cf-person__num {
  flex-shrink: 0;
  min-width: 24px;
  color: #b3261e;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
}

.ns-cf-person__point { margin: 0; color: #1a1a1a; font-size: 16px; font-weight: 700; line-height: 1.5; }
.ns-cf-person__text { margin: 4px 0 0; color: #555; font-size: 13px; line-height: 1.75; }

/* フォーム */
.ns-cf {
  --ns-cf-navy: #0e254d;
  --ns-cf-text: #1b2a4a;
  --ns-cf-line: #cfd6e0;
  --ns-cf-field: #fff;
  --ns-cf-red: #b3261e;
  --ns-cf-check: #3cb35a;
  --ns-cf-next: #e8742c;
  container-type: inline-size;
  color: var(--ns-cf-text);
  font-size: 15px;
  line-height: 1.6;
  padding: 16px 0 4px;
}

.ns-cf-dry {
  margin: 0 0 8px;
  padding: 6px 12px;
  border: 1px dashed #c98a00;
  background: #fff8e6;
  color: #6b4a00;
  font-size: 12px;
}

.ns-cf-form { margin: 0; }

.ns-cf-row {
  display: grid;
  /* 最長の「当社を知ったきっかけ」＋必須バッジが1行に収まる幅 */
  grid-template-columns: 204px minmax(0, 1fr);
  gap: 6px 16px;
  margin: 0;
  padding: 11px 0;
  border: 0;
  min-width: 0;
}

.ns-cf-label {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 8px;
  float: none;
  width: auto;
  margin: 0;
  padding: 8px 0 0;
  color: var(--ns-cf-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
}

.ns-cf-badge {
  display: inline-block;
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 2px;
  background: #8a94a6;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .08em;
}

.ns-cf-badge--required { background: var(--ns-cf-red); }

.ns-cf-control { min-width: 0; }

.ns-cf input[type="text"],
.ns-cf input[type="email"],
.ns-cf input[type="tel"],
.ns-cf select,
.ns-cf textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--ns-cf-line);
  border-radius: 6px;
  background: var(--ns-cf-field);
  color: var(--ns-cf-text);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}

.ns-cf textarea { min-height: 84px; resize: vertical; }

.ns-cf ::placeholder { color: #a3abb8; opacity: 1; }

.ns-cf input:focus,
.ns-cf select:focus,
.ns-cf textarea:focus {
  border-color: var(--ns-cf-navy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 37, 77, .12);
}

.ns-cf :focus-visible { outline: 3px solid #4d8cc8; outline-offset: 2px; }

/* 次に入力する項目（まだ入力していない最初の必須項目） */
.ns-cf-row.is-next input:not([type="checkbox"]):not([type="radio"]),
.ns-cf-row.is-next select,
.ns-cf-row.is-next textarea {
  border: 2px solid var(--ns-cf-next);
  padding: 7px 13px;
  box-shadow: 0 0 0 3px rgba(232, 116, 44, .14);
}

.ns-cf-row.is-next .ns-cf-check span::before { border-color: var(--ns-cf-next); }

/* ストックサンと同じく、次に入力する項目の枠を点滅させる（入力中・動きを減らす設定では止める） */
@keyframes ns-cf-blink {
  0%, 100% { border-color: var(--ns-cf-next); box-shadow: 0 0 0 3px rgba(232, 116, 44, .2); }
  50% { border-color: rgba(232, 116, 44, .3); box-shadow: 0 0 0 0 rgba(232, 116, 44, 0); }
}

.ns-cf-row.is-next input:not([type="checkbox"]):not([type="radio"]),
.ns-cf-row.is-next select,
.ns-cf-row.is-next textarea,
.ns-cf-row.is-next .ns-cf-check span::before { animation: ns-cf-blink 1.2s ease-in-out infinite; }

.ns-cf-row.is-next :focus { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .ns-cf-row.is-next input, .ns-cf-row.is-next select, .ns-cf-row.is-next textarea,
  .ns-cf-row.is-next .ns-cf-check span::before { animation: none; }
}

.ns-cf-select { position: relative; }

.ns-cf-select select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  cursor: pointer;
}

.ns-cf-select select:invalid { color: #a3abb8; }
.ns-cf-select option { color: var(--ns-cf-text); }

.ns-cf-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  border-top: 9px solid #333;
  border-right: 7px solid transparent;
  border-left: 7px solid transparent;
  transform: translateY(-40%);
  pointer-events: none;
}

.ns-cf-help {
  margin: 4px 0 0;
  color: #5d6878;
  font-size: 12px;
  line-height: 1.5;
}

.ns-cf-control > .ns-cf-help:first-child { margin: 9px 0 6px; }

.ns-cf-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  padding-top: 4px;
}

.ns-cf-label__note { width: 100%; color: #5d6878; font-size: 11px; font-weight: 400; }

/* 上限予算：総額/月額と金額を1行に並べる */
.ns-cf-budget { display: flex; align-items: center; gap: 10px; }
.ns-cf-budget .ns-cf-select { flex: 1; min-width: 0; }
/* 金額欄は幅が狭いので、矢印を寄せて「選択してください」が切れないようにする */
.ns-cf-budget .ns-cf-select select { padding-right: 32px; padding-left: 12px; }
.ns-cf-budget .ns-cf-select::after { right: 12px; }

.ns-cf-checks--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.ns-cf-check {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 1px 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
}

.ns-cf-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ns-cf-check span { display: flex; align-items: center; gap: 10px; }

/* チェック欄は総額/月額（ラジオ）も含めて四角いチェックボックスの見た目にそろえる */
.ns-cf-check span::before {
  content: "";
  flex-shrink: 0;
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  border: 1px solid #c3cad4;
  border-radius: 3px;
  background: #fff;
  transition: border-color .15s;
}

.ns-cf-check input:checked + span::before {
  border-color: var(--ns-cf-check);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%233cb35a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.ns-cf-check input:focus-visible + span::before { outline: 3px solid #4d8cc8; outline-offset: 2px; }

.ns-cf-error {
  margin: 4px 0 0;
  color: var(--ns-cf-red);
  font-size: 12px;
  font-weight: 700;
}

.ns-cf-error:empty { display: none; }

.ns-cf-row.is-invalid input:not([type="checkbox"]):not([type="radio"]),
.ns-cf-row.is-invalid select,
.ns-cf-row.is-invalid textarea { border-color: var(--ns-cf-red); background: #fff7f6; }

.ns-cf-errors {
  margin: 0 0 8px;
  padding: 10px 14px;
  border-left: 4px solid var(--ns-cf-red);
  background: #fff3f2;
  color: var(--ns-cf-red);
  font-size: 13px;
  font-weight: 700;
}

.ns-cf-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ns-cf-submit { padding: 10px 0 0; text-align: center; }

.ns-cf-consent { margin: 0 0 8px; color: #5d6878; font-size: 12px; }
.ns-cf-consent a { color: var(--ns-cf-navy); text-decoration: underline; }

.ns-cf-button {
  display: inline-block;
  box-sizing: border-box;
  width: 100%;
  max-width: 380px;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ns-cf-navy);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s;
}

.ns-cf-button:hover { opacity: .85; color: #fff; }
.ns-cf-button[disabled] { opacity: .55; cursor: progress; }

.ns-cf-status { min-height: 0; margin: 6px 0 0; color: var(--ns-cf-red); font-size: 13px; font-weight: 700; }

.ns-cf-done {
  margin-top: 12px;
  padding: 32px;
  border: 1px solid #dce3ed;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.ns-cf-done__title { margin: 0 0 12px; color: var(--ns-cf-navy); font-size: 22px; font-weight: 700; }
.ns-cf-done p { margin: 0 0 16px; }
.ns-cf-done__note { color: #5d6878; font-size: 13px; }

.ns-cf-page .ns-business-notice { display: none !important; }

/* フォーム幅が狭い時（PCの2カラムでも画面幅が小さい時を含む）は、項目名を入力欄の上に置く */
@container (max-width: 500px) {
  .ns-cf-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px 0; }
  .ns-cf-label { padding: 0; }
  .ns-cf-label__note { width: auto; }
  .ns-cf-budget { flex-wrap: wrap; gap: 6px; }
  .ns-cf-budget .ns-cf-select { flex-basis: 100%; }
}

@container (max-width: 400px) {
  .ns-cf-checks { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

@media (max-width: 1279px) {
  .ns-cf-page { padding: 8px 32px 72px; gap: 32px; }
  .ns-cf-page .p-lp-form__right-inner { padding: 16px 28px 28px; }
  .ns-cf-page .p-lp-form__logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ns-cf-person__body { grid-template-columns: 140px minmax(0, 1fr); gap: 20px; }
}

/* スマホ・タブレット：見出し → 説明 → フォーム → ご支援実績 → 代表 の順 */
@media (max-width: 1023px) {
  .ns-cf-page { padding: 0 0 48px; gap: 0; }
  .ns-cf-page .p-lp-form__right-inner { align-self: stretch; margin: 0 24px; }
  .ns-cf-page .p-lp-form__left,
  .ns-cf-page .p-lp-form__left-inner { display: contents; }
  .ns-cf-page .p-lp-form__lead-block { order: 1; padding: 20px 24px; background: #fff; }
  .ns-cf-page .p-lp-form__right { order: 2; }
  .ns-cf-page .p-lp-form__block--support { order: 3; margin: 48px 24px 0; padding: 0; }
  .ns-cf-page .ns-cf-person { order: 4; margin: 48px 24px 0; }
  .ns-cf-page .p-lp-form__logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .ns-cf-hero { padding: 20px 16px 16px; }
  .ns-cf-hero__badge { padding: 5px 12px; font-size: 13px; }
  .ns-cf-hero__badge small { display: block; margin: 0; }
  .ns-cf-page .p-lp-form__right-inner { margin: 0; padding: 0; border-radius: 0; box-shadow: none; }
  .ns-cf { padding: 12px 20px 8px; }
  .ns-cf-page.p-lp-form .p-lp-form__block--support,
  .ns-cf-page.p-lp-form .ns-cf-person { margin: 40px 20px 0; }
  .ns-cf-page .p-lp-form__block-title { margin-bottom: 16px; font-size: 20px; }
  .ns-cf-page .p-lp-form__logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 18px; padding: 4px 0 0; }
  .ns-cf-page .p-lp-form__logo { order: 0; height: 36px; }
  .ns-cf-page .p-lp-form__logo img { height: auto; max-height: 26px; }
  .ns-cf-person__lead { margin: -8px 0 20px; font-size: 14px; }
  .ns-cf-person__body { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; }
  .ns-cf-person__photo figcaption { padding: 8px 4px 10px; font-size: 13px; }
  .ns-cf-person__point { font-size: 15px; }
  .ns-cf-done { padding: 24px 16px; }
}

.ns-cf-turnstile { display: flex; justify-content: center; margin: 0 0 8px; }
.ns-cf-turnstile:empty { margin: 0; }

/* 資料ダウンロード（/service-document/・お役立ち資料）：左に表紙・説明・おすすめ・わかること、右に追従するフォーム（ストックサンの資料DLページ参考） */
.ns-dl-hero .ns-cf-hero__title { word-break: auto-phrase; text-wrap: balance; }
.ns-dl-hero__meta { margin: 10px 0 0; color: #5d6878; font-size: 14px; letter-spacing: .06em; }

.ns-cf-page.ns-dl-page { padding-bottom: 72px; }
.ns-dl-page .p-lp-form__left-inner { gap: 0; }
.ns-cf-page.ns-dl-page .ns-dl-visual { order: 1; margin: 0; padding: 0; background: transparent; }
.ns-cf-page.ns-dl-page .ns-dl-detail { order: 2; margin-top: 36px; }
.ns-cf-page.ns-dl-page .ns-dl-author { order: 3; margin-top: 56px; }
.ns-cf-page.ns-dl-page .p-lp-form__block--support { order: 4; margin-top: 56px; }
/* フォームは左の説明を読み進めても見えるように追従させる */
.ns-cf-page.ns-dl-page .p-lp-form__right-inner { position: sticky; top: 24px; }

.ns-dl-form-title { margin: 8px 0 0; color: #1a1a1a; font-size: 20px; font-weight: 700; line-height: 1.5; letter-spacing: .04em; text-align: center; }
.ns-dl-after { margin: 10px 0 0; text-align: center; }

/* お役立ち資料：表紙の後ろに中のページを右上へずらして重ね、各ページの一部だけを見せる。
   後ろのページは縮小版を引き伸ばし・ぼかして読めないようにし、操作もできないようにする。
   ずらし幅は幅基準の%（1枚あたり横7.5%・縦3%）で、画面幅が変わっても同じ見え方になる */
.ns-dl-stack { position: relative; margin: 0; padding: 12% 30% 0 0; }
.ns-dl-stack img { display: block; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.ns-dl-stack__cover {
  position: relative;
  z-index: 10;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  background: #f7f8fa;
  box-shadow: 0 10px 28px rgba(14, 37, 77, .24);
}
.ns-dl-stack__page {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: calc(10 - var(--i));
  width: 70%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(14, 37, 77, .18);
  filter: blur(1px);
  transform: translate(calc(var(--i) * 10.72%), calc(var(--i) * -7.62%)) rotate(calc(var(--i) * .8deg));
  transform-origin: left bottom;
}

.ns-dl-covers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ns-dl-covers li { margin: 0; overflow: hidden; border: 1px solid #e3e7ee; border-radius: 4px; background: #f7f8fa; aspect-ratio: 16 / 9; }
.ns-dl-covers img { display: block; width: 100%; height: 100%; object-fit: cover; }

.ns-dl-lead { margin: 0; color: #1a1a1a; font-size: 16px; line-height: 1.9; letter-spacing: .03em; }
.ns-dl-section { margin-top: 44px; }
.ns-dl-section .p-lp-form__block-title { margin-bottom: 16px; font-size: 22px; }

.ns-dl-checks,
.ns-dl-points,
.ns-dl-materials { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; counter-reset: ns-dl; }

.ns-dl-checks li {
  position: relative;
  margin: 0;
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid #eceef2;
  color: #1a1a1a;
  font-size: 15px;
  line-height: 1.7;
}
.ns-dl-checks li::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #3cb35a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.ns-dl-points li {
  position: relative;
  margin: 0;
  padding: 12px 0 12px 40px;
  border-bottom: 1px solid #eceef2;
  color: #1a1a1a;
  font-size: 15px;
  line-height: 1.7;
  counter-increment: ns-dl;
}
.ns-dl-points li::before {
  content: counter(ns-dl, decimal-leading-zero);
  position: absolute;
  top: 12px;
  left: 0;
  color: #b3261e;
  font-size: 16px;
  font-weight: 700;
}

.ns-dl-materials li { margin: 0; padding: 14px 0; border-bottom: 1px solid #eceef2; }
.ns-dl-material__name { margin: 0; color: #1a1a1a; font-size: 16px; font-weight: 700; line-height: 1.6; }
.ns-dl-material__name span { margin-left: 8px; color: #5d6878; font-size: 13px; font-weight: 400; }
.ns-dl-material__desc { margin: 4px 0 0; color: #444; font-size: 14px; line-height: 1.75; }

.ns-dl-author__body { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: start; gap: 24px; }
.ns-dl-author__text { margin: 0; color: #333; font-size: 15px; line-height: 1.85; }

.ns-dl-related { box-sizing: border-box; max-width: 1420px; margin: 0 auto; padding: 56px 70px 88px; border-top: 1px solid #eceef2; background: #fff; }
.ns-dl-related__heading { margin: 0 0 24px; color: #1a1a1a; font-size: 24px; font-weight: 700; letter-spacing: .04em; text-align: center; }
.ns-dl-related__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.ns-dl-related__list li { margin: 0; }
.ns-dl-related__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #e3e7ee;
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
  text-decoration: none;
  transition: box-shadow .15s;
}
.ns-dl-related__card:hover { box-shadow: 0 4px 16px rgba(14, 37, 77, .12); color: #1a1a1a; }
.ns-dl-related__card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #f7f8fa; }
.ns-dl-related__title { padding: 14px 16px 4px; font-size: 16px; font-weight: 700; line-height: 1.6; }
.ns-dl-related__more { margin-top: auto; padding: 4px 16px 16px; color: #0e254d; font-size: 13px; text-decoration: underline; }

@media (max-width: 1279px) {
  .ns-dl-related { padding: 48px 32px 72px; }
}

/* スマホ・タブレット：見出し → 表紙 → フォーム → 説明 → ご相談 → ご支援実績 → ほかの資料 */
@media (max-width: 1023px) {
  .ns-cf-page.ns-dl-page .p-lp-form__right-inner { position: static; }
  .ns-cf-page.ns-dl-page .ns-dl-visual { order: 1; padding: 8px 24px 24px; }
  .ns-cf-page.ns-dl-page .p-lp-form__right { order: 2; }
  .ns-cf-page.ns-dl-page .ns-dl-detail { order: 3; margin: 40px 24px 0; }
  .ns-cf-page.ns-dl-page .ns-dl-author { order: 4; margin: 48px 24px 0; }
  .ns-cf-page.ns-dl-page .p-lp-form__block--support { order: 5; margin: 48px 24px 0; }
  .ns-dl-related__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .ns-dl-hero__meta { font-size: 13px; }
  .ns-cf-page.ns-dl-page .ns-dl-visual { padding: 4px 16px 20px; }
  .ns-cf-page.ns-dl-page .ns-dl-detail,
  .ns-cf-page.ns-dl-page .ns-dl-author,
  .ns-cf-page.ns-dl-page.p-lp-form .p-lp-form__block--support { margin: 40px 20px 0; }
  .ns-dl-form-title { margin-top: 20px; font-size: 18px; }
  .ns-dl-section { margin-top: 36px; }
  .ns-dl-section .p-lp-form__block-title { font-size: 19px; }
  .ns-dl-lead { font-size: 15px; }
  .ns-dl-author__body { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; }
  .ns-dl-author__text { font-size: 14px; }
  .ns-dl-related { padding: 40px 20px 56px; }
  .ns-dl-related__heading { font-size: 20px; }
  .ns-dl-related__list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
