/* 案3：条件（サービス・地域・建物）を選ぶと、実績が近い順に並ぶ。1件は横長の行で、右側に規模の項目を同じ位置にそろえる。
   色・書体・ボタンは現行（配色B）の値だけを使う。 */
.wr-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 条件を選ぶところ */
.n-cond { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 32px; padding: clamp(14px, 1.6vw, 20px) clamp(16px, 1.8vw, 24px); border: 1px solid rgba(46, 57, 80, .08); border-radius: 20px; background: #fff; box-shadow: var(--k-sh); }
.n-q { display: grid; grid-template-columns: 3.6em minmax(0, 1fr); align-items: start; gap: 8px 12px; min-width: 0; }
.n-q-l { padding-top: 12px; color: var(--k-soft); font-size: .74rem; font-weight: 700; letter-spacing: .1em; white-space: nowrap; }
.n-opts { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.n-opts--sub { grid-column: 2; }
.n-opts button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px 0 16px; border: 1px solid var(--k-line); border-radius: 999px; background: #fff; color: var(--k-ink); font-size: .84rem; font-weight: 700; letter-spacing: .05em; white-space: nowrap; cursor: pointer; transition: border-color .3s ease, background .3s ease, color .3s ease; }
.n-opts button:has(.k-badge) { padding-left: 10px; }
.n-opts button:hover { border-color: var(--k-title); }
.n-opts button b { color: var(--k-soft); font-size: .9rem; font-weight: 400; }
.n-opts button[aria-pressed="true"] { border-color: var(--k-navy); background: var(--k-navy); color: #fff; }
.n-opts button[aria-pressed="true"] b { color: #a9d9cf; }
.n-opts--sub button { min-height: 40px; font-size: .8rem; background: var(--k-paper2); border-color: transparent; }
@media (min-width: 1000px) {
  .n-cond { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .n-q--sv { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .n-cond { padding-right: 0; }
  .n-opts { flex-wrap: nowrap; padding: 0 16px 2px 0; overflow-x: auto; scrollbar-width: none; }
  .n-opts::-webkit-scrollbar { display: none; }
}

/* 結果の要約と区切り */
.n-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: clamp(16px, 1.8vw, 22px) !important; font-size: .84rem; font-weight: 700; letter-spacing: .05em; }
.n-status-c { color: var(--k-title); }
.n-status span:not(.n-status-c) { color: var(--k-soft); font-weight: 500; }
.n-status strong { margin: 0 3px 0 6px; color: var(--k-title); font-size: 1.3rem; font-weight: 400; line-height: 1; }
.n-count { margin-top: clamp(18px, 2vw, 26px) !important; }
.n-note { margin-top: 14px !important; padding: 16px 20px; border: 1px solid var(--k-line); border-radius: 16px; background: #fff; font-size: .88rem; line-height: 1.9; }
.n-sec { margin-top: clamp(24px, 2.8vw, 38px); }
.n-sec-h { display: flex; align-items: baseline; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--k-ink); font-size: clamp(1rem, 1.3vw, 1.14rem); letter-spacing: .08em; }
.n-sec-h small { color: var(--k-soft); font-size: .78rem; font-weight: 500; }
.n-sec-h small b { margin-right: 2px; color: var(--k-title); font-size: 1.1rem; font-weight: 400; }
.n-rest { justify-content: center; margin-top: 16px !important; }

/* 1件の行 */
.n-list { display: grid; gap: 12px; margin-top: 14px !important; }
.n-link { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 10px 10px 14px; border: 1px solid rgba(46, 57, 80, .08); border-radius: 18px; background: #fff; box-shadow: var(--k-sh); color: inherit; text-decoration: none; transition: translate .5s var(--k-ease), box-shadow .5s ease, border-color .3s ease; }
a.n-link:hover { translate: 0 -3px; border-color: rgba(46, 57, 80, .2); box-shadow: var(--k-sh2); }
a.n-link:hover .wr-ph img { scale: 1.04; }
.n-ph[data-n="1"] .wr-ph { aspect-ratio: 8 / 3; }
.n-body, .n-lead { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 0 6px; }
.n-lead { padding-top: 6px; }
.n-title { font-size: clamp(1rem, 1.3vw, 1.14rem); line-height: 1.5; }
.n-what { display: -webkit-box; overflow: hidden; font-size: .86rem; line-height: 1.85; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.n-hit { display: flex; flex-wrap: wrap; gap: 6px; }
.n-hit li { display: inline-flex; align-items: center; gap: 6px; padding: 0 .9em; border: 1px solid transparent; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .05em; line-height: 2; }
.n-hit .is-ok { background: rgba(31, 50, 102, .09); color: var(--k-navy); }
.n-hit .is-ok::before { content: ""; width: 9px; height: 5px; border-bottom: 1.8px solid; border-left: 1.8px solid; rotate: -45deg; translate: 0 -2px; }
.n-hit .is-ng { border-color: var(--k-line); color: var(--k-soft); font-weight: 500; }
/* 規模の項目。スマホでは「項目名 値」を続けて並べ、PCでは項目名の下に値を置く。広い画面では、どの行でも同じ項目が同じ位置に来る。 */
.n-spec { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--k-line); }
.n-spec > div { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.n-spec dt { flex: none; color: var(--k-soft); font-size: .68rem; letter-spacing: .06em; }
.n-spec dd { font-size: .8rem; font-weight: 500; }
@media (min-width: 860px) {
  .n-link { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); align-items: center; gap: 26px; padding: 14px 26px 14px 14px; }
  .is-text .n-link { align-items: start; padding: 18px 26px 18px 14px; }
  .n-body { padding: 0; }
  .n-lead { padding: 0 0 0 12px; }
  .n-what { -webkit-line-clamp: 3; line-clamp: 3; }
  .n-spec { gap: 8px 22px; margin-top: 6px; }
  .n-spec > div { display: grid; gap: 1px; }
  .n-spec dt { font-size: .7rem; }
  .n-spec dd { font-size: .82rem; }
}
@media (min-width: 1100px) {
  .n-spec { display: grid; grid-template-columns: 1.5fr 1.35fr 1.45fr 1.05fr .8fr 1fr; gap: 0 14px; }
  .n-spec > [data-c="1"] { grid-column: 1; } .n-spec > [data-c="2"] { grid-column: 2; } .n-spec > [data-c="3"] { grid-column: 3; }
  .n-spec > [data-c="4"] { grid-column: 4; } .n-spec > [data-c="5"] { grid-column: 5; } .n-spec > [data-c="6"] { grid-column: 6; }
}
/* トップの中では、欄が縦に長くなりすぎないよう、写真の列を少し細くし、文章は2行まで */
@media (min-width: 860px) {
  .wr[data-wr="top"] .n-link { grid-template-columns: minmax(0, 36%) minmax(0, 1fr); padding-block: 12px; }
  .wr[data-wr="top"] .n-what { -webkit-line-clamp: 2; line-clamp: 2; }
}
.d-others .n-list { margin-top: 16px !important; }
