/* NextScale Design Polish — 本文の要素だけを対象にする。ヘッダー（.l-header）・フッター（#before_footer_widget・.l-footer）には適用しない。 */
:root {
	--nsdp-navy: #0e254d;
	--nsdp-blue: #1659ca;
	--nsdp-text: #1a1a1a;
	--nsdp-muted: #6b6560;
	--nsdp-line: #d9dee8;
	--nsdp-pale: #f3f6fb;
	--nsdp-font-en: Figtree, "Noto Sans JP", sans-serif;
	--nsdp-font-num: Roboto, "Noto Sans JP", sans-serif;
}

/* ===== 共通 ===== */
.nsdp .p-postList__meta:empty { display: none; }
.nsdp-br-pc { display: none; }
@media (min-width: 768px) { .nsdp-br-pc { display: inline; } }
.nsdp-eyebrow {
	margin: 0 0 10px;
	color: var(--nsdp-blue);
	font-family: var(--nsdp-font-en);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1.4;
}
.nsdp-btn,
.nsdp-btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 12px 28px;
	background: var(--nsdp-navy);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: box-shadow 0.25s, transform 0.2s;
}
.nsdp-btn:hover { color: #fff; text-decoration: none; box-shadow: 0 12px 28px rgba(14, 37, 77, 0.22); transform: translateY(-1px); }
.nsdp-btn--ghost,
.nsdp-btn--ghost:visited { background: #fff; color: var(--nsdp-navy); border: 2px solid var(--nsdp-navy); }
.nsdp-btn--ghost:hover { color: var(--nsdp-navy); background: var(--nsdp-pale); }
.nsdp-btn__arrow { transition: transform 0.2s; }
.nsdp-btn:hover .nsdp-btn__arrow { transform: translateX(4px); }

/* ===== トップ（/） ===== */
/* 理念の「主な実績例」 */
.nsdp-top .nsdp-results { margin-top: 28px; }
.nsdp-results__title { margin: 0 0 12px; color: var(--nsdp-navy); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; }
.nsdp-results__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.nsdp-results__card { margin: 0; padding: 18px 18px 16px; border: 1px solid var(--nsdp-line); border-top: 3px solid var(--nsdp-navy); background: #fff; }
.nsdp-results__industry { margin: 0 0 10px; color: var(--nsdp-navy); font-size: 15px; font-weight: 700; letter-spacing: 0.04em; }
.nsdp-results__list { margin: 0; padding: 0; list-style: none; }
/* テーマの入れ子リストの白丸（list-style: circle）を消し、青い点だけにする（0.4.0） */
.nsdp-top .nsdp-results__cards,
.nsdp-top .nsdp-results__list,
.nsdp-top .nsdp-results__list li { list-style: none !important; padding-left: 0; }
.nsdp-top .nsdp-results__list li { padding-left: 14px; }
.nsdp-top .nsdp-results__list li::marker,
.nsdp-top .nsdp-results__cards > li::marker { content: none; }
.nsdp-results__list li { position: relative; padding-left: 14px; color: var(--nsdp-text); font-size: 13px; font-weight: 700; line-height: 1.7; }
.nsdp-results__list li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 6px; height: 6px; border-radius: 50%; background: var(--nsdp-blue); }
@media (max-width: 767px) { .nsdp-results__cards { grid-template-columns: 1fr; } }
/* ボタンの色を全体の紺にそろえる（SWELLのボタン色＝青緑のまま残っていた2か所） */
.nsdp-top .swell-block-button.is-style-btn_normal .swell-block-button__link { background-color: var(--nsdp-navy); }
/* 導入事例（0.5.2）：3件を横3列に並べる。768〜1024pxは2列、767px以下は1列（テーマの指定のまま）。
   3列では1枚の幅が狭くなるので、テーマの字間 2px と 16〜17px の文字を詰め、余白も少し狭める */
@media (min-width: 1025px) {
	.nsdp-top .case-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
	.nsdp-top .case-card__body { gap: 10px; padding: 20px 20px 22px; }
	.nsdp-top .case-card__company { font-size: 14px; letter-spacing: 0.04em; }
	.nsdp-top .case-card__title { font-size: 17px; line-height: 1.6; letter-spacing: 0.04em; text-wrap: pretty; }
	.nsdp-top .case-card__meta { grid-template-columns: auto minmax(0, 1fr); row-gap: 6px; column-gap: 14px; padding-top: 14px; }
	.nsdp-top .case-card__meta dt,
	.nsdp-top .case-card__meta dd { font-size: 14px; line-height: 1.6; letter-spacing: 0.04em; }
}
/* 選ばれる理由：番号を見出しの上に置き、見出しの折り返し位置をそろえる */
.nsdp-top .reason-columns .wp-block-group.is-row.is-nowrap { flex-direction: column; align-items: flex-start; gap: 6px; }
.nsdp-top .reason-columns .wp-block-group.is-row.is-nowrap > .font { font-family: var(--nsdp-font-en); font-size: 18px !important; letter-spacing: 0.08em; line-height: 1.2; color: var(--nsdp-blue) !important; }
.nsdp-top .reason-columns .reason-block-title { line-height: 1.5; }
/* お知らせ：他のセクションと同じ幅に。alignwide の広げ幅は打ち消す（枠からはみ出さない） */
.nsdp-top .nsdp-news .news-gap { gap: 64px !important; width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }

/* 導入事例の実績（0.3.0）：白い箱6つ → 罫線で区切った1枚の表。PCは3列×2行、スマホは2列×3行。
   各マスは項目名・数字・注記の縦組みで、同じ行の高さを subgrid でそろえる。数字は Roboto（トップだけ数字と記号に絞って読み込む） */
.nsdp-top p.u-mb-50:has(+ .nsdp-stats) { margin-bottom: 28px !important; }
.nsdp-top .nsdp-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin: 0 0 40px;
	padding: 0;
	border: 1px solid var(--nsdp-line);
	background: var(--nsdp-line);
}
.nsdp-top .nsdp-stats__item {
	display: grid;
	grid-row: span 3;
	grid-template-rows: subgrid;
	align-content: start;
	margin: 0;
	padding: 22px 28px 20px;
	background: #fff;
}
.nsdp-top .nsdp-stats dt,
.nsdp-top .nsdp-stats dd { margin: 0; padding: 0; border: 0; background: none; }
.nsdp-top .nsdp-stats .nsdp-stats__label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--nsdp-text);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.04em;
}
.nsdp-top .nsdp-stats .nsdp-stats__label::before { content: ""; flex: none; width: 3px; height: 14px; margin-top: 0.3em; background: linear-gradient(180deg, #eaa418, #d81e18); }
.nsdp-top .nsdp-stats .nsdp-stats__value { margin-top: 12px; color: var(--nsdp-navy); line-height: 1; white-space: nowrap; }
.nsdp-top .nsdp-stats__num { font-family: var(--nsdp-font-num); font-size: 46px; font-weight: 700; letter-spacing: 0; font-feature-settings: "tnum", "lnum"; }
.nsdp-top .nsdp-stats__unit { margin: 0 2px; font-family: var(--nsdp-font-num); font-size: 16px; font-weight: 700; letter-spacing: 0.02em; }
.nsdp-top .nsdp-stats__unit:first-child { margin-left: 0; }
.nsdp-top .nsdp-stats .nsdp-stats__note {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid #edf0f5;
	color: var(--nsdp-muted);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: 0;
	text-wrap: balance;
	word-break: keep-all;
	overflow-wrap: anywhere;
}
@media (max-width: 1023px) {
	.nsdp-top .nsdp-stats__item { padding: 20px 20px 18px; }
	.nsdp-top .nsdp-stats .nsdp-stats__label { font-size: 13px; }
	.nsdp-top .nsdp-stats__num { font-size: 40px; }
	.nsdp-top .nsdp-stats .nsdp-stats__note { font-size: 11px; }
}
@media (max-width: 767px) {
	.nsdp-top p.u-mb-50:has(+ .nsdp-stats) { margin-bottom: 24px !important; }
	.nsdp-top .nsdp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 32px; }
	.nsdp-top .nsdp-stats__item { padding: 18px 12px 16px 14px; }
	.nsdp-top .nsdp-stats .nsdp-stats__label { gap: 6px; font-size: 12px; letter-spacing: 0; }
	.nsdp-top .nsdp-stats .nsdp-stats__label::before { height: 12px; }
	.nsdp-top .nsdp-stats .nsdp-stats__value { margin-top: 10px; }
	.nsdp-top .nsdp-stats__num { font-size: 32px; }
	.nsdp-top .nsdp-stats__unit { font-size: 13px; }
	.nsdp-top .nsdp-stats .nsdp-stats__note { margin-top: 10px; padding-top: 8px; font-size: 11px; }
}

/* お知らせ・新着コラム（0.3.0）：1件の高さを固定（題名は2行で省略）し、左右の行とボタンの位置をそろえる */
.nsdp-top .nsdp-news .news-title,
.nsdp-top .nsdp-news .blog-title { margin-bottom: 18px; }
.nsdp-top .nsdp-news h3 + .news-item { border-top: 1px solid var(--nsdp-line); }
.nsdp-top .nsdp-news .news-item.news-item {
	gap: 10px;
	padding: 20px 4px 22px;
	border-bottom: 1px solid var(--nsdp-line);
}
.nsdp-top .nsdp-news .news-item .news-item__meta { gap: 14px; min-height: 24px; }
.nsdp-top .nsdp-news .news-item .news-item__date { font-size: 14px; line-height: 1; letter-spacing: 0.02em; font-feature-settings: "tnum"; }
.nsdp-top .nsdp-news .news-item .news-item__cat {
	padding: 4px 10px;
	background: var(--nsdp-pale);
	color: var(--nsdp-navy);
	font-size: 12px;
	line-height: 1.3;
	letter-spacing: 0.04em;
}
.nsdp-top .nsdp-news .news-item .news-item__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	min-height: calc(1.75em * 2);
	font-size: 16px;
	line-height: 1.75;
	letter-spacing: 0.04em;
	transition: color 0.2s ease;
}
.nsdp-top .nsdp-news .news-item .news-item__title:hover { opacity: 1; color: var(--nsdp-blue); text-decoration: underline; text-underline-offset: 3px; }
.nsdp-top .nsdp-news .wp-block-spacer { height: 32px !important; }
@media (max-width: 767px) {
	.nsdp-top .nsdp-news .news-item.news-item { gap: 8px; padding: 16px 0 18px; }
	.nsdp-top .nsdp-news .news-item .news-item__date { font-size: 13px; }
	.nsdp-top .nsdp-news .news-item .news-item__cat { font-size: 11px; }
	.nsdp-top .nsdp-news .news-item .news-item__title { font-size: 15px; letter-spacing: 0.02em; }
	.nsdp-top .nsdp-news .wp-block-spacer { height: 24px !important; }
}

/* ===== 料金（/price/） ===== */
.nsdp-price .p-price-plans__price { white-space: normal; flex-wrap: wrap; row-gap: 0; }
.nsdp-price .p-price-plans__price-prefix,
.nsdp-price .p-price-plans__price-suffix { white-space: nowrap; }
.nsdp-price .p-price-plans__price-note {
	display: inline-block;
	margin: 0 0 4px;
	padding: 5px 14px;
	border-radius: 999px;
	background: #e9f0fb;
	color: var(--nsdp-navy);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.02em;
}
.nsdp-price .nsdp-price-card--subsidy .p-price-plans__price-prefix { font-size: clamp(16px, 1.3vw, 20px); }
.nsdp-price .p-price-plans__keywords { flex-wrap: wrap !important; }
@media (min-width: 1024px) {
	.nsdp-price .p-price-plans__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.nsdp-price .p-price-plans__card { grid-column: span 2; }
	.nsdp-price .p-price-plans__card:nth-last-child(2):nth-child(3n + 1) { grid-column: 2 / span 2; }
	.nsdp-price .p-price-plans__card:last-child:nth-child(3n + 1) { grid-column: 3 / span 2; }
}
.nsdp-price .p-price-compare__table--cols-4,
.nsdp-price .p-price-compare__table--cols-2 { max-width: none; }
@media (max-width: 767px) {
	.nsdp-price .p-price-compare__scroller { overflow: visible; }
	.nsdp-price .nsdp-table { display: block; min-width: 0; max-width: none; border: 0; box-shadow: none; background: transparent; }
	.nsdp-price .nsdp-table thead { display: none; }
	.nsdp-price .nsdp-table tbody,
	.nsdp-price .nsdp-table tr,
	.nsdp-price .nsdp-table th,
	.nsdp-price .nsdp-table td { display: block; width: auto !important; min-width: 0; }
	.nsdp-price .nsdp-table tr { margin: 0 0 14px; border: 1px solid var(--nsdp-line); background: #fff; box-shadow: 0 8px 24px rgba(12, 30, 64, 0.05); }
	.nsdp-price .nsdp-table th.p-price-compare__cell--label { position: static; padding: 12px 16px; border: 0; background: var(--nsdp-navy); color: #fff; font-size: 15px; white-space: normal; }
	.nsdp-price .nsdp-table td { padding: 12px 16px 14px; border: 0; border-top: 1px solid var(--nsdp-line); font-size: 14px; }
	.nsdp-price .nsdp-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--nsdp-blue); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
	.nsdp-price .nsdp-table td[data-label=""]::before { content: none; }
}

/* ===== 導入事例 一覧（/case/） ===== */
.nsdp-case-archive .p-archiveHead__lead { margin-top: 16px; }
.nsdp-cases {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.nsdp-case { margin: 0; }
.nsdp-case__link,
.nsdp-case__link:visited {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid var(--nsdp-line);
	background: #fff;
	color: var(--nsdp-text);
	text-decoration: none;
	transition: box-shadow 0.25s, transform 0.25s;
}
.nsdp-case__link:hover { color: var(--nsdp-text); text-decoration: none; box-shadow: 0 14px 38px rgba(12, 30, 64, 0.12); transform: translateY(-2px); }
.nsdp-case__thumb { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--nsdp-pale); }
.nsdp-case__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.nsdp-case__link:hover .nsdp-case__thumb img { transform: scale(1.03); }
.nsdp-case__body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 22px 24px 24px; }
.nsdp-case__company { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; color: var(--nsdp-navy); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; }
.nsdp-case__industry {
	padding: 2px 9px;
	border: 1px solid #cfd8e6;
	border-radius: 999px;
	background: #f3f7fd;
	color: var(--nsdp-blue);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
}
.nsdp-case__title { margin: 0; color: var(--nsdp-text); font-size: clamp(17px, 1.4vw, 20px); font-weight: 700; line-height: 1.55; }
.nsdp-case__facts { display: grid; gap: 8px; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--nsdp-line); }
.nsdp-case__fact { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.6; }
.nsdp-case__fact dt { color: var(--nsdp-muted); font-weight: 700; }
.nsdp-case__fact dd { margin: 0; color: var(--nsdp-text); font-weight: 700; }
.nsdp-case__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; color: var(--nsdp-blue); font-size: 14px; font-weight: 700; }
.nsdp-case__arrow { transition: transform 0.2s; }
.nsdp-case__link:hover .nsdp-case__arrow { transform: translateX(4px); }
/* 0.5.2：PCは3列。3列の時は1枚が狭いので、本文の余白・題名・項目名の幅を詰める。1024px以下は2列、767px以下は1列 */
@media (min-width: 1025px) {
	.nsdp-case__body { gap: 10px; padding: 20px 20px 22px; }
	.nsdp-case__title { font-size: 17px; line-height: 1.6; }
	.nsdp-case__title { text-wrap: pretty; }
	/* 本文の幅が約280pxしかないため、項目名を横に置くと値が4〜5行に折れる。項目名を値の上に小さく置く */
	.nsdp-case__facts { gap: 10px; }
	.nsdp-case__fact { grid-template-columns: minmax(0, 1fr); gap: 2px; font-size: 14px; }
	.nsdp-case__fact dt { font-size: 12px; letter-spacing: 0.04em; }
}
@media (max-width: 1024px) {
	.nsdp-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.nsdp-cases { grid-template-columns: 1fr; gap: 20px; }
	.nsdp-case__body { padding: 18px 18px 20px; }
}

/* ===== 導入事例 詳細（/case/<slug>/） ===== */
.nsdp-case .p-case-challenge__figure img,
.nsdp-case .p-case-why__figure img,
.nsdp-case .p-case-result__figure img { aspect-ratio: 4 / 3; object-fit: cover; height: auto; }
.nsdp-case .nsdp-voice {
	grid-template-columns: 200px minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	padding: 44px 44px 44px 48px;
}
.nsdp-case .nsdp-voice .p-case-voice__quote { order: 2; padding: 0; }
.nsdp-case .nsdp-voice .p-case-voice__figure {
	order: 1;
	width: 200px;
	height: 200px;
	margin: 0;
	border-radius: 50%;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 10px 30px rgba(12, 30, 64, 0.12);
}
.nsdp-case .nsdp-voice .p-case-voice__figure img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top; }
@media (max-width: 767px) {
	.nsdp-case .nsdp-voice { grid-template-columns: 1fr; justify-items: center; gap: 24px; padding: 32px 20px; }
	.nsdp-case .nsdp-voice .p-case-voice__figure { width: 160px; height: 160px; }
	.nsdp-case .nsdp-voice .p-case-voice__figure img { height: 100%; aspect-ratio: 1 / 1; }
	.nsdp-case .nsdp-voice .p-case-voice__quote { padding: 0; }
}

/* ===== サービス一覧（/service/） ===== */
.nsdp-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px auto 0; }
.nsdp-jump__link,
.nsdp-jump__link:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	border: 1px solid var(--nsdp-line);
	border-radius: 999px;
	background: #fff;
	color: var(--nsdp-navy);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s, border-color 0.2s;
}
.nsdp-jump__link:hover { background: var(--nsdp-pale); border-color: var(--nsdp-blue); color: var(--nsdp-navy); text-decoration: none; }
.nsdp-jump__count {
	min-width: 22px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--nsdp-navy);
	color: #fff;
	font-family: var(--nsdp-font-en);
	font-size: 12px;
	line-height: 22px;
	text-align: center;
}
.nsdp-group { margin-top: 56px; scroll-margin-top: 96px; }
.nsdp-group:first-of-type { margin-top: 8px; }
.nsdp-group__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 20px;
	margin: 0 0 24px;
	padding-left: 16px;
	border-left: 6px solid var(--nsdp-blue);
}
.nsdp-group__title { margin: 0; color: var(--nsdp-navy); font-size: clamp(20px, 1.7vw, 24px); font-weight: 700; letter-spacing: 0.04em; line-height: 1.4; }
.nsdp-group__lead { margin: 0; color: var(--nsdp-muted); font-size: 14px; line-height: 1.7; }
.nsdp-chip {
	display: inline-block;
	align-self: flex-start;
	width: max-content;
	margin-bottom: 8px;
	padding: 2px 10px;
	border-radius: 999px;
	background: #e9f0fb;
	color: var(--nsdp-blue);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.7;
}
.nsdp-list .p-postList__title { font-size: 17px; line-height: 1.5; }
.nsdp-list .p-postList__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: #4a4a4a;
	font-size: 14px;
	line-height: 1.75;
}
@media (max-width: 767px) {
	.nsdp-group { margin-top: 40px; }
	.nsdp-jump { gap: 8px; }
	.nsdp-jump__link { padding: 8px 14px; font-size: 13px; }
}

/* ===== 会社情報（/company/） ===== */
.nsdp-co { color: var(--nsdp-text); font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.nsdp-co *, .nsdp-co *::before, .nsdp-co *::after { box-sizing: border-box; }
/* SWELLのfullWide外側の余白を外し、内側だけでセクション間隔を管理する。 */
.nsdp-co > .nsdp-co__sec { position: relative; padding-block: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; background: #fff; scroll-margin-top: 100px; }
.nsdp-co > .nsdp-co__sec:nth-child(2n), .nsdp-co > .nsdp-co__sec--msg { background: var(--nsdp-pale); }
.nsdp-co .nsdp-co__inner { min-width: 0; padding-top: 76px; padding-bottom: 76px; }
.nsdp-co .nsdp-co__sec--hero .nsdp-co__inner { padding-top: 32px; padding-bottom: 32px; }
.nsdp-co .nsdp-co__hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.nsdp-co .nsdp-co__h1 { margin: 0; padding: 0; color: var(--nsdp-navy); font-size: clamp(32px, 3.2vw, 44px); font-weight: 700; letter-spacing: .04em; line-height: 1.3; }
.nsdp-co .nsdp-co__catch { margin: 24px 0 16px; color: var(--nsdp-navy); font-size: clamp(22px, 2.5vw, 30px); font-weight: 700; line-height: 1.6; }
.nsdp-co .nsdp-co__lead { margin: 0; font-size: 16px; line-height: 1.85; }
.nsdp-co .nsdp-co__facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--nsdp-muted); }
.nsdp-co__facts li { margin: 0; padding-left: 12px; border-left: 2px solid #9b8052; }
.nsdp-co .nsdp-co__hero-photo { margin: 0; }
.nsdp-co__hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.nsdp-co__hero-photo figcaption { margin: 8px 0 0; color: var(--nsdp-muted); font-size: 14px; text-align: left; }
.nsdp-co .nsdp-co__nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin: 32px 0 0; padding: 16px 0 0; border-top: 1px solid var(--nsdp-line); }
.nsdp-co__nav a, .nsdp-co__nav a:visited { display: flex; justify-content: center; align-items: center; min-height: 48px; padding: 8px; color: var(--nsdp-navy); background: var(--nsdp-pale); font-size: 16px; font-weight: 700; text-align: center; text-decoration: none; }
.nsdp-co__nav a:hover { background: #e5eaf0; text-decoration: underline; }
.nsdp-co .nsdp-co__about-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 32px; padding-bottom: 16px; border-bottom: 1px solid var(--nsdp-line); }
.nsdp-co__about-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.nsdp-co .nsdp-co__h2 { margin: 0 0 24px; padding: 0; border: 0; background: none; color: var(--nsdp-navy); font-size: clamp(25px, 2.4vw, 32px); font-weight: 700; letter-spacing: .03em; line-height: 1.5; }
.nsdp-co .nsdp-co__h2::before, .nsdp-co .nsdp-co__h2::after, .nsdp-co h3::before, .nsdp-co h3::after { content: none; }
.nsdp-co :is(a, summary):focus-visible { outline: 3px solid var(--nsdp-navy); outline-offset: 4px; }
.nsdp-co__statement { margin: 0 0 22px; color: var(--nsdp-navy); font-size: clamp(18px, 1.5vw, 22px); font-weight: 700; letter-spacing: 0.04em; line-height: 1.7; }
.nsdp-co__body p { margin: 0 0 1em; font-size: 16px; letter-spacing: 0.04em; line-height: 1.85; }
.nsdp-co__body p:last-child { margin-bottom: 0; }
.nsdp-co__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.nsdp-co__grid--msg { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); align-items: start; }
.nsdp-co__figure { margin: 0; padding: clamp(16px, 2vw, 28px); background: var(--nsdp-pale); }
.nsdp-co__figure img { display: block; width: 100%; height: auto; }
.nsdp-co__figure .nsdp-co__figure-sp { display: none; }
.nsdp-co__portrait { margin: 0; overflow: hidden; background: #fff; box-shadow: 0 16px 40px rgba(12, 30, 64, 0.12); }
.nsdp-co__portrait img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; }
.nsdp-co__sign { display: flex; flex-direction: column; gap: 4px; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--nsdp-line); }
.nsdp-co__name { color: var(--nsdp-navy); font-size: 24px; font-weight: 700; letter-spacing: 0.1em; }
.nsdp-co__role { color: var(--nsdp-muted); font-size: 14px; letter-spacing: 0.06em; }
.nsdp-co__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.nsdp-co__head { margin-bottom: 28px; }
.nsdp-co .nsdp-co__head .nsdp-co__h2 { margin-bottom: 0; }
.nsdp-co__dl { margin: 0; border-top: 1px solid var(--nsdp-line); }
.nsdp-co__row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 20px 8px; border-bottom: 1px solid var(--nsdp-line); }
.nsdp-co__row dt { margin: 0; color: var(--nsdp-navy); font-size: 16px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.8; }
.nsdp-co__row dd { margin: 0; font-size: 16px; letter-spacing: 0.02em; line-height: 1.8; }
.nsdp-co__row dd .td-list { margin: 0; padding-left: 1.2em; }
.nsdp-co__row dd .td-list li { margin: 0; }
@media (max-width: 960px) {
	.nsdp-co__grid { grid-template-columns: 1fr; gap: 32px; }
	.nsdp-co__grid--msg { grid-template-columns: 1fr; }
	.nsdp-co__portrait { max-width: 320px; margin-inline: auto; }
	.nsdp-co__figure .nsdp-co__figure-pc { display: none; }
	.nsdp-co__figure .nsdp-co__figure-sp { display: block; max-width: 420px; margin-inline: auto; }
	.nsdp-co__row { grid-template-columns: 1fr; gap: 4px; padding: 16px 4px; }
}
@media (max-width: 767px) {
	.nsdp-co__nav a { padding: 8px 14px; font-size: 16px; }
	.nsdp-co__links .nsdp-btn { width: 100%; }
}


/* 課題・サービス・導入事例 */
.nsdp-co .nsdp-co__concerns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 28px 0 0; }
.nsdp-co__concerns > div { min-width: 0; padding: 24px; background: #fff; border: 1px solid var(--nsdp-line); border-top: 2px solid #9b8052; }
.nsdp-co__concerns dt { margin: 0 0 12px; color: var(--nsdp-navy); font-size: 18px; font-weight: 700; line-height: 1.7; }
.nsdp-co__concerns dd { margin: 0; }
.nsdp-co__consultation { margin-top: 28px; }
.nsdp-co__consultation p { margin: 0 0 16px; line-height: 1.85; }
.nsdp-co .nsdp-co__service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.nsdp-co__service { display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid var(--nsdp-line); background: #fff; }
.nsdp-co .nsdp-co__service h3, .nsdp-co .nsdp-co__case h3, .nsdp-co .nsdp-co__steps h3 { margin: 0 0 20px; padding: 0; border: 0; background: none; color: var(--nsdp-navy); font-size: 21px; line-height: 1.6; }
.nsdp-co .nsdp-co__service-use { margin: 0 0 8px; color: var(--nsdp-muted); }
.nsdp-co .nsdp-co__price { margin: 0 0 12px; color: var(--nsdp-navy); font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; line-height: 1.7; }
.nsdp-co .nsdp-co__price-label { margin: 0; font-weight: 700; }
.nsdp-co .nsdp-co__initial { margin: 0 0 20px; }
.nsdp-co .nsdp-co__condition { margin: auto 0 0; padding-top: 20px; border-top: 1px solid var(--nsdp-line); }
.nsdp-co .nsdp-co__case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.nsdp-co__case { min-width: 0; padding: 20px; background: #fff; border: 1px solid var(--nsdp-line); }
.nsdp-co .nsdp-co__case-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin: 0 0 20px; }
.nsdp-co .nsdp-co__case h3 { font-size: 20px; margin-bottom: 8px; }
.nsdp-co__case p, .nsdp-co__steps p { margin: 0; }
.nsdp-co__case dl { margin: 20px 0 0; }
.nsdp-co__case dt { margin-top: 16px; color: var(--nsdp-navy); font-weight: 700; }
.nsdp-co__case dd { margin: 4px 0 0; }
.nsdp-co .nsdp-co__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 28px 0 0; padding: 0; list-style: none; }
.nsdp-co__steps li { position: relative; min-width: 0; margin: 0; padding: 24px; background: var(--nsdp-pale); border-top: 2px solid #9b8052; }
.nsdp-co__steps li + li::before { content: ""; position: absolute; top: 50%; left: -22px; width: 10px; height: 10px; border-top: 1px solid var(--nsdp-muted); border-right: 1px solid var(--nsdp-muted); transform: rotate(45deg); }
.nsdp-co__step-number { display: block; margin-bottom: 16px; color: #806238; font-size: 24px; font-weight: 700; line-height: 1.3; }
.nsdp-co .nsdp-co__steps h3 { font-size: 20px; margin-bottom: 12px; }
.nsdp-co__note { margin-top: 24px; font-size: 16px; line-height: 1.85; }
.nsdp-co .nsdp-co__comparison { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 28px 0 0; line-height: 1.85; overflow-wrap: anywhere; }
.nsdp-co__comparison caption { text-align: left; padding-bottom: 12px; color: var(--nsdp-navy); font-weight: 700; }
.nsdp-co .nsdp-co__comparison th, .nsdp-co .nsdp-co__comparison td { padding: 18px; border: 1px solid var(--nsdp-line); text-align: left; vertical-align: top; background: #fff; color: var(--nsdp-text); }
.nsdp-co .nsdp-co__comparison thead th { color: var(--nsdp-navy); background: var(--nsdp-pale); }
.nsdp-co__comparison th:first-child { width: 18%; }
.nsdp-co__comparison th:last-child { width: 30%; }

/* FAQはネイティブ開閉。回答をDOMに保ち、JSに依存しない。 */
.nsdp-co .nsdp-co__faq { margin: 28px 0 0; line-height: 1.85; }
.nsdp-co__faq details { margin: 0; border-top: 1px solid var(--nsdp-line); }
.nsdp-co__faq details:last-child { border-bottom: 1px solid var(--nsdp-line); }
.nsdp-co__faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 20px 4px; color: var(--nsdp-navy); font-size: 18px; font-weight: 700; list-style: none; cursor: pointer; }
.nsdp-co__faq summary::-webkit-details-marker { display: none; }
.nsdp-co__faq summary::marker { content: ""; }
.nsdp-co__faq-indicator { flex: 0 0 24px; position: relative; width: 24px; height: 24px; }
.nsdp-co__faq-indicator::before, .nsdp-co__faq-indicator::after { content: ""; position: absolute; inset: 11px 4px auto; height: 2px; background: currentColor; }
.nsdp-co__faq-indicator::after { transform: rotate(90deg); }
.nsdp-co__faq details[open] .nsdp-co__faq-indicator::after { display: none; }
.nsdp-co__faq-content { padding: 0 4px 24px; }
.nsdp-co .nsdp-co__faq-answer { margin: 0; }
.nsdp-co__faq-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 16px 0 0; padding-left: 1.2em; }
@media (max-width: 1100px) {
	.nsdp-co .nsdp-co__case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	.nsdp-co .nsdp-co__hero-grid { grid-template-columns: 1fr; gap: 28px; }
	.nsdp-co .nsdp-co__hero-photo { max-width: 600px; width: 100%; }
	.nsdp-co .nsdp-co__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nsdp-co .nsdp-co__steps { grid-template-columns: 1fr; }
	.nsdp-co__steps li + li::before { top: -23px; left: calc(50% - 5px); transform: rotate(135deg); }
}
@media (max-width: 767px) {
	.nsdp-co .nsdp-co__inner { padding-top: 48px; padding-bottom: 48px; }
	.nsdp-co .nsdp-co__sec--hero .nsdp-co__inner { padding-top: 24px; padding-bottom: 24px; }
	.nsdp-co .nsdp-co__concerns, .nsdp-co .nsdp-co__service-grid, .nsdp-co .nsdp-co__case-grid { grid-template-columns: 1fr; }
	.nsdp-co .nsdp-co__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nsdp-co__service, .nsdp-co__concerns > div, .nsdp-co__steps li { padding: 20px; }
	.nsdp-co__hero-photo figcaption, .nsdp-co__role { font-size: 16px; }
	.nsdp-co__faq summary { font-size: 16px; }
}
@media (max-width: 767px) {
	.nsdp-co__comparison thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.nsdp-co__comparison, .nsdp-co__comparison tbody, .nsdp-co__comparison tr { display: block; }
	.nsdp-co__comparison caption { display: block; width: auto; max-width: 100%; text-align: left; }
	.nsdp-co__comparison tr { margin: 0 0 20px; border: 1px solid var(--nsdp-line); }
	.nsdp-co .nsdp-co__comparison tbody th, .nsdp-co .nsdp-co__comparison td { display: block; width: auto; border: 0; padding: 14px 16px; }
	.nsdp-co .nsdp-co__comparison tbody th { background: var(--nsdp-pale); color: var(--nsdp-navy); }
	.nsdp-co__comparison td::before { content: attr(data-label); display: block; color: var(--nsdp-muted); font-weight: 700; font-size: 13px; margin-bottom: 6px; }
}

/* ===== 動画一覧（/youtube/）：問い合わせ枠を他ページのCTA帯と同じ型（紺の帯・白文字・共通ボタン）に ===== */
.nsdp-youtube .nsyt-list .nsyt-contact { background: var(--nsdp-navy); }
.nsdp-youtube .nsyt-list .nsyt-contact__card { max-width: 900px; padding: 0; background: transparent; color: #fff; }
.nsdp-youtube .nsyt-list .nsyt-contact__en { margin: 0 0 8px; color: rgba(255, 255, 255, 0.75); font: 700 13px/1.4 var(--nsdp-font-en); letter-spacing: 0.2em; }
.nsdp-youtube .nsyt-list .nsyt-contact__ja { margin: 0 0 20px; color: #fff; font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: 0.04em; line-height: 1.4; }
.nsdp-youtube .nsyt-list .nsyt-contact__lead { margin-bottom: 28px; color: rgba(255, 255, 255, 0.92); }
.nsdp-youtube .nsyt-list .nsyt-contact__caution { order: 9; margin: 24px auto 0; color: rgba(255, 255, 255, 0.75); font-size: 13px; font-weight: 400; }
.nsdp-youtube .nsyt-list .nsyt-contact__card { display: flex; flex-direction: column; align-items: center; }
.nsdp-youtube .nsyt-list .nsyt-contact__form { width: 100%; max-width: 720px; }
.nsdp-youtube .nsyt-list .nsyt-contact__button { border-color: #fff; border-radius: 0; background: #fff; color: var(--nsdp-navy); font-weight: 700; }
.nsdp-youtube .nsyt-list .nsyt-contact__button:hover { background: var(--nsdp-pale); color: var(--nsdp-navy); }
.nsdp-youtube .nsyt-list .nsyt-contact__button--primary { border-color: transparent; background: linear-gradient(180deg, #eaa418 0%, #d81e18 100%); color: #fff; }
.nsdp-youtube .nsyt-list .nsyt-contact__button--primary:hover { border-color: transparent; background: linear-gradient(180deg, #d9950f 0%, #c21a15 100%); color: #fff; }

/* ===== トップのファーストビュー（0.4.0） ===== */
.nsdp-br-sp { display: none; }
.nsdp-top .nsdp-fv-h1 { margin: 0 0 26px !important; color: var(--nsdp-navy) !important; font-weight: 700; line-height: 1.25 !important; letter-spacing: 0.02em !important; }
.nsdp-top .nsdp-fv-h1__line { display: block; white-space: nowrap; font-size: clamp(28px, 3.4vw, 50px); }
/* 中見出し：飾りは付けず、文字だけで見せる（左の線・下線のマーカーは2026-10-15 石丸さんの指示で外した） */
.nsdp-top .nsdp-fv-catch { position: relative; margin: 0 0 24px !important; padding: 0 !important; border: 0 !important; background: none !important; color: var(--nsdp-text) !important; font-size: clamp(19px, 1.85vw, 27px) !important; font-weight: 700 !important; line-height: 1.65 !important; letter-spacing: 0.04em !important; word-break: keep-all; overflow-wrap: anywhere; }
.nsdp-top .nsdp-fv-catch::before,
.nsdp-top .nsdp-fv-catch::after { content: none !important; display: none !important; }
.nsdp-top .nsdp-fv-catch__line { display: block; }
.nsdp-top .nsdp-fv-catch__ph { display: inline-block; }
/* 本文：2項目を印つきで並べ、一度に読める量にする */
.nsdp-top .nsdp-fv-lead { margin-bottom: 32px !important; font-size: 16px !important; font-weight: 500 !important; line-height: 1.75 !important; letter-spacing: 0.04em !important; color: #333; }
.nsdp-top .nsdp-fv-lead__line { position: relative; display: block; padding-left: 28px; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.nsdp-top .nsdp-fv-lead__line + .nsdp-fv-lead__line { margin-top: 8px; }
.nsdp-top .nsdp-fv-lead__line::before { content: ""; position: absolute; left: 0; top: 0.28em; width: 18px; height: 18px; border-radius: 50%; background: var(--nsdp-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
/* 768〜1279pxでは2つのボタンが横に並びきらず写真に重なるため、左の列の幅で折り返す */
@media (min-width: 768px) and (max-width: 1279px) {
	.nsdp-top .cta-btn-group { flex-wrap: wrap; gap: 12px 16px !important; max-width: 100%; }
	.nsdp-top .cta-btn-group .wp-block-buttons { margin: 0 !important; }
}
@media (max-width: 767px) {
	.nsdp-br-sp { display: inline; }
	.nsdp-top .nsdp-fv-h1 { margin-bottom: 18px !important; }
	.nsdp-top .nsdp-fv-h1__line { font-size: clamp(20px, 6.1vw, 30px); }
	.nsdp-top .nsdp-fv-catch { font-size: 18px !important; margin-bottom: 18px !important; }
	.nsdp-top .nsdp-fv-lead { font-size: 14px !important; line-height: 1.7 !important; margin-bottom: 24px !important; }
	.nsdp-top .nsdp-fv-lead__line { padding-left: 24px; }
	.nsdp-top .nsdp-fv-lead__line::before { width: 16px; height: 16px; background-size: 16px; top: 0.22em; }
}

/* ---- トップ：サービスバナーを1枚ずつ、内容の近いセクションの下に置く（0.5.0、0.5.3で分散・縮小） ---- */
.nsdp-top .nsdp-banner-slot { background: #fff; padding: 40px 20px; }
.nsdp-top .nsdp-banner-slot__link { display: block; max-width: 1040px; margin: 0 auto; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 16px rgba(14, 37, 77, .12); transition: transform .2s ease, box-shadow .2s ease; }
.nsdp-top .nsdp-banner-slot__link:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(14, 37, 77, .2); }
.nsdp-top .nsdp-banner-slot__link:focus-visible { outline: 3px solid #1e6fe0; outline-offset: 3px; }
.nsdp-top .nsdp-banner-slot__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 1; }
@media (max-width: 599px) {
	.nsdp-top .nsdp-banner-slot { padding: 24px 16px; }
	.nsdp-top .nsdp-banner-slot__link { border-radius: 6px; }
}
