/* パッケージ共通LP：求人LP（job-matching-lp.css）に足りない調整だけ */
@media (min-width: 901px) {
  .jm-workflow.jm-cols-3 .jm-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jm-workflow.jm-cols-5 .jm-items { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .jm-workflow.jm-cols-2 .jm-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 901px) {
  .jm-workflow[class*="jm-cols-"] .jm-item:nth-child(3) { border-left: 1px solid #dcdedb; }
  .jm-workflow.jm-cols-3 .jm-item:nth-child(3) { padding-left: 24px; }
}
.jm-models .jm-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .jm-models .jm-items { grid-template-columns: 1fr; } }
.jm-browser-bar > span:nth-child(2) { max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jm-review-table > div > span { min-width: 0; }
.jm-review-table b { white-space: nowrap; margin-left: 12px; }
/* サンプル画面の高さは固定せず、表の行数に合わせる */
.jm-screen { height: auto !important; min-height: 430px; }
@media (max-width: 560px) { .jm-screen { min-height: 380px; } }

/* ===== 商品ごとの配色（色相を回す）。固定表示の相談ボタンには掛けない ===== */
.jm-page[style*="--jm-rot"] > *:not(.jm-contact-dock) { filter: hue-rotate(var(--jm-rot)); }

/* ===== 商品の仕様から作るセクション ===== */
.jm-notscope { margin-top: 26px; padding: 20px 24px; border: 1px dashed #c3c5c4; border-radius: 6px; background: #fff8; }
.jm-notscope strong { font-size: 13px; }
.jm-notscope ul { margin: 10px 0 0; padding-left: 1.2em; font-size: 13px; color: #5f6466; line-height: 1.9; }
.jm-tour-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding: 38px 0; border-top: 1px solid #d5d8d5; }
.jm-tour-row.is-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.jm-tour-row.is-rev .jm-tour-copy { order: 2; }
.jm-tour-copy .jm-item-number { display: block; font: italic 38px Georgia, serif; color: #2433e6; margin-bottom: 8px; }
.jm-page .jm-tour-copy h3 { font-size: 24px; line-height: 1.6; letter-spacing: -.03em; margin: 8px 0 14px; }
.jm-tour-copy ul { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; line-height: 1.8; color: #515659; }
.jm-tour-copy li { padding-left: 1.4em; position: relative; }
.jm-tour-copy li::before { content: "✓"; position: absolute; left: 0; color: #2433e6; font-weight: 700; }
.jm-tour-shot { min-width: 0; }
.jm-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; counter-reset: c; }
.jm-chain li { position: relative; flex: 1 1 180px; min-width: 160px; padding: 22px 26px 22px 22px; background: #fff; border: 1px solid #d6dbd3; margin-right: -1px; }
.jm-chain li:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); z-index: 2; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #ffffff; color: #10161c; font-size: 12px; }
.jm-chain-no { display: block; font: italic 22px Georgia, serif; color: #2433e6; margin-bottom: 6px; }
.jm-chain strong { display: block; font-size: 14px; line-height: 1.6; }
.jm-chain small { display: block; margin-top: 6px; font-size: 12px; line-height: 1.8; color: #676c6e; }
.jm-integ { margin-top: 34px; }
.jm-page .jm-integ h3 { font-size: 16px; margin-bottom: 12px; }
.jm-integ ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.jm-integ li { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 16px 18px; background: #fff; border: 1px solid #d6dbd3; align-items: center; }
.jm-integ small { grid-column: 1 / -1; font-size: 12px; color: #676c6e; line-height: 1.8; }
.jm-integ-state { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef1e8; color: #5d6265; white-space: nowrap; }
.jm-integ-state.is-std { background: #ffffff; color: #10161c; }
.jm-integ-state.is-opt { background: #e3eefa; color: #1f5fa8; }
@media (max-width: 900px) { .jm-tour-row, .jm-tour-row.is-rev { grid-template-columns: 1fr; gap: 24px; padding: 28px 0; } .jm-tour-row.is-rev .jm-tour-copy { order: 0; } .jm-chain li { flex-basis: 100%; margin: 0 0 -1px; } .jm-chain li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -11px; transform: translateX(-50%); } }

/* ===== デモページ ===== */
.pd-demo-head { background: var(--jm-deep, #2e3439); color: #fff; padding: 22px 0 46px; }
.pd-demo-head .jm-breadcrumb { margin-bottom: 40px; }
.pd-demo-head h1 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.04em; line-height: 1.5; margin: 6px 0 14px; color: #fff; }
.pd-demo-lead { max-width: 720px; font-size: 14px; line-height: 2; color: #d8dbd8; margin: 0; }
.pd-demo-main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; margin-top: -22px; position: relative; padding-bottom: 20px; }
.pd-demo-stage { min-width: 0; }
.pd-demo-stage .pd-app { box-shadow: 0 20px 56px rgba(16,22,28, .2); border: 1px solid #d6d9d6; min-height: 520px; }
.pd-demo-side { display: grid; gap: 16px; position: sticky; top: 20px; align-self: start; padding-top: 30px; }
.pd-guide, .pd-side-cta { background: #fff; border: 1px solid #d6dbd3; padding: 22px 22px 20px; }
.pd-guide h2 { font-size: 17px; line-height: 1.6; margin: 6px 0 12px; letter-spacing: -.02em; }
.pd-guide ul { margin: 0 0 14px; padding-left: 1.2em; font-size: 13px; line-height: 1.9; color: #4d5255; }
.pd-reset { border: 0; background: none; color: #2433e6; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; padding: 0; }
.pd-side-cta { background: #e7ebe4; }
.pd-side-cta strong { display: block; font-size: 15px; margin-bottom: 6px; }
.pd-side-cta p { font-size: 12px; line-height: 1.9; color: #5f6466; margin: 0 0 16px; }
.pd-side-cta .jm-button { width: 100%; justify-content: space-between; }
.pd-side-cta .jm-text-link { display: inline-block; margin-top: 14px; font-size: 12px; }
.pd-demo-note { font-size: 11px; color: #5b6670; padding-block: 8px 60px; }
@media (max-width: 960px) { .pd-demo-main { grid-template-columns: 1fr; margin-top: -14px; } .pd-demo-side { position: static; padding-top: 0; } }

/* ヒーロー見出しの強調語は、途中で折り返さない */
.jm-hero h1 > span { white-space: nowrap; }
