/* 新デザイン：sales グループの追加分。このファイルはそのグループだけが書く。nd.css の後に読む。 */

/* 番号（01, 02…）は CSS の counter で出す。HTML 側は空の span にしておく（@index+1 のヘルパーが無いため） */
.nd-sales-photos, .nd-sales-cardlist, .nd-sales-tiles, .nd-sales-timeline { counter-reset: nd-n; }
.nd-sales-photos > li, .nd-sales-cardlist > li, .nd-sales-tiles > li, .nd-sales-timeline > li { counter-increment: nd-n; }
.nd-sales-no:empty::before { content: counter(nd-n, decimal-leading-zero); }

/* 人物写真（AI 生成・別人）の札。写真の左上に重ねる。狭い写真でははみ出さず折り返す */
.nd-sales-photos > li { position: relative; }
.nd-sales-photos > li > .nd { white-space: normal; max-width: calc(100% - 16px); }
.nd-sales-hero-photo > .nd, .nd-sales-photo > .nd, .nd-sales-photos > li > .nd { color: var(--nd-white); }

/* 写真つきの選択カード（/services の「工事を選ぶ」「立場から探す」）。SP は1列、PC は 3 列（工法は 5 枚を 3＋2） */
.nd-sales-pick { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.nd-sales-pick > li { min-width: 0; }
.nd-sales-pick a { display: flex; flex-direction: column; height: 100%; background: var(--nd-white); border: 1px solid var(--nd-border); color: var(--nd-navy); text-decoration: none; }
.nd-sales-pick a:hover .nd-sales-pick-name { text-decoration: underline; }
.nd-sales-pick img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--nd-placeholder); }
.nd-sales-pick-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.nd-sales-pick-name { font-family: var(--nd-serif); font-weight: 600; font-size: 19px; line-height: 1.5; }
.nd-sales-pick-name span { display: block; }
.nd-sales-pick-tag { font-weight: 700; font-size: 13px; line-height: 1.5; color: var(--nd-blue); }
.nd-sales-pick-tags { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.nd-sales-pick-tags span { font-size: 13px; line-height: 1.6; padding: 0 8px; border: 1px solid var(--nd-border); border-radius: 999px; background: var(--nd-pale); }
.nd-sales-pick-more { margin-top: auto; font-weight: 700; font-size: 14px; color: var(--nd-blue); }
@media (min-width: 640px) { .nd-sales-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .nd-sales-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
