/* 導入事例のカードと業種ボタン（LPと導入事例一覧で共通。中身は tools/build_jirei.py が書き出す） */

/* 業種での絞り込みボタン */
.jfilters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 22px; }
.jf {
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--white); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.jf span { color: var(--gray); font-weight: 400; margin-left: 2px; }
.jf[aria-pressed="true"] { background: var(--magenta-soft); border-color: var(--magenta); color: var(--magenta); }
.jf[aria-pressed="true"] span { color: var(--magenta); opacity: .7; }

/* カード */
.jcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; align-items: stretch; }
.jcard[hidden] { display: none; }
.jcard {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--white); border-radius: var(--radius-l); padding: 14px; border: 2px solid var(--line);
  transition: border-color .15s, transform .15s;
}

.jcard-visual {
  position: relative; overflow: hidden; border-radius: var(--radius-m); background: var(--grad);
  padding: 16px 18px 18px; container-type: inline-size;
  display: flex; flex-direction: column; gap: 14px;
}
.jcard-visual::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(-55deg, rgba(255,255,255,.12) 0 2px, transparent 2px 40px);
}
.jcard-visual > * { position: relative; }
.jcard-co { display: grid; gap: 8px; }
.jcard-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.jcard-biz { margin: 0; font-size: 13.5px; font-weight: 800; line-height: 1.6; letter-spacing: .04em; color: var(--white); text-shadow: 0 1px 2px rgba(28,43,42,.35); }
.jcard-tag {
  align-self: flex-start; padding: 3px 12px; border-radius: 999px; background: var(--white);
  font-weight: 800; font-size: 12px; letter-spacing: .1em; color: var(--pink);
}
.jcard-tag.size { color: var(--ink); }
.jcard-money .lbl { display: block; margin-bottom: 4px; font-weight: 700; font-size: 12px; letter-spacing: .06em; }
.jcard-money .val {
  display: block; font-weight: 800; white-space: nowrap; line-height: 1.05; letter-spacing: 0;
  font-size: clamp(30px, 14cqi, 46px); color: var(--white);
  -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; filter: drop-shadow(3px 3px 0 var(--magenta));
}
.jcard-money .unit { font-size: .44em; letter-spacing: .04em; }

.jcard-body { display: flex; flex-direction: column; flex: 1; padding: 16px 6px 4px; }
.jcard-body h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; line-height: 1.55; letter-spacing: .04em; word-break: auto-phrase; text-wrap: pretty; }
.jcard-target { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; color: var(--pink); line-height: 1.6; }
.jcard-desc { margin: 0 0 12px; font-size: 14px; color: #3d4f4e; line-height: 1.75; }
.jcard-h { margin: 6px 0 6px; font-size: 12px; font-weight: 800; color: var(--gray); letter-spacing: .08em; }
.jcard-made { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.jcard-made li { position: relative; padding-left: 18px; font-size: 14px; font-weight: 700; line-height: 1.55; }
.jcard-made li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
}

/* 導入前後の棒（実際の比率の長さ。導入後の数字は棒の右） */
.jcard-bars { display: grid; gap: 6px; margin: 0 0 12px; }
.jcard-line { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 8px; font-size: 12px; color: var(--gray); font-weight: 700; }
.jcard-bar { height: 24px; border-radius: 999px; display: flex; align-items: center; padding: 0 12px; font-weight: 800; font-size: 13px; white-space: nowrap; }
.jcard-bar.b { background: var(--line); color: var(--gray); }
.jcard-bar.a { background: var(--teal); flex: none; min-width: 8px; padding: 0; }
.jcard-after { display: flex; align-items: center; gap: 8px; min-width: 0; }
.jcard-val { font-weight: 800; font-size: 13px; color: var(--pink); white-space: nowrap; }

.jcard-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.jcard-chips .chip { padding: 4px 12px; border-radius: 999px; background: var(--mist); font-size: 12.5px; font-weight: 700; }
.jcard-chips .chip b { font-weight: 600; font-size: 15px; color: var(--magenta); margin-right: 2px; letter-spacing: 0; }
.jcard-go { margin-top: auto; font-weight: 800; font-size: 14px; color: var(--magenta); }

.jcards-note { margin: 16px 0 0; text-align: center; font-size: 11.5px; color: var(--gray); line-height: 1.7; }

@media (max-width: 400px) {
  .jcards { grid-template-columns: 1fr; }
}
