/* 業種別LP共通スタイル（tools/generate-lp.js が生成。手編集しない） */
body {
  margin: 0;
  background: #f0f4f9;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
  word-break: auto-phrase;
}

a { color: #2f5cab; }
a:focus-visible { outline: 3px solid rgba(59, 111, 196, 0.35); outline-offset: 2px; }

/* ── ヘッダー（デモのシェルバーと同素材） ── */
.lp-bar {
  box-sizing: border-box;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid #ccd5e2;
  background: #f0f4f9;
  box-shadow: 0 1px 6px rgba(31, 41, 55, 0.07);
}

.lp-bar__brand { display: flex; align-items: center; }
.lp-bar__logo { display: block; width: auto; height: 28px; }

.lp-bar__caption {
  color: #384766;
  font-size: 13px;
  font-weight: 600;
}

.lp-bar__nav {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.lp-bar__nav:hover { text-decoration: underline; }

/* ── 本文レイアウト ── */
.lp {
  box-sizing: border-box;
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 20px 56px;
}

.lp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #667085;
  font-size: 12.5px;
}
.lp-breadcrumb a { color: #667085; text-decoration: none; }
.lp-breadcrumb a:hover { color: #2f5cab; text-decoration: underline; }

/* ── ヒーロー ── */
.lp-hero { margin-bottom: 20px; }

.lp-hero__eyebrow {
  margin: 0 0 2px;
  color: #667085;
  font-size: 12.5px;
  font-weight: 600;
}

.lp-hero__title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.45;
  text-wrap: balance;
}

.lp-hero__tagline {
  margin: 0 0 10px;
  color: #2f5cab;
  font-size: 16px;
  font-weight: 700;
}

.lp-hero__lead {
  margin: 0 0 18px;
  max-width: 40em;
  color: #475467;
  font-size: 14.5px;
  text-wrap: pretty;
}

/* ことばの読み替え代表3組。「うちのことばだ」を冒頭で見せる予告編 */
/* テキスト（左）と縮図（右）の2カラム。狭い画面では縦積みに戻る */
.lp-hero__cols {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 44px;
}

.lp-hero__text {
  flex: 1 1 30em;
  min-width: 0;
}

.lp-hero__words {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin: 0 auto;
  font-size: 13px;
}

.lp-hero__words-label {
  padding: 2px 10px;
  border: 1px solid #ccdaf3;
  border-radius: 999px;
  background: #e7effc;
  color: #244e91;
  font-size: 11.5px;
  font-weight: 700;
}

/* ボードのミニチュア。タイトルバー＝プロジェクト、左レール＝アジェンダ、
   淡黄色カード＝タスク。下の実スクリーンショットと同じレイアウトの縮図として描く */
.lp-hero__mini {
  display: inline-flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ccd5e2;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(31, 41, 55, 0.08);
}

.lp-hero__mini-title {
  padding: 4px 12px;
  border-bottom: 1px solid #e4e7ec;
  color: #1f2937;
  font-size: 12px;
  font-weight: 700;
}

.lp-hero__mini-body {
  display: flex;
  align-items: stretch;
}

.lp-hero__mini-lane {
  display: flex;
  align-items: center;
  padding: 7px 11px;
  border-right: 1px solid #e4e7ec;
  background: #f2f6fc;
  color: #244e91;
  font-size: 11.5px;
  font-weight: 600;
}

.lp-hero__mini-cards {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
}

.lp-hero__mini-card {
  padding: 3px 10px;
  border: 1px solid #e8dcae;
  border-radius: 5px;
  background: #fdf7e3;
  color: #6b5d2a;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* 後続のカードの気配だけ見せる空カード */
.lp-hero__mini-card--ghost {
  width: 22px;
  height: 14px;
  padding: 0;
  border-style: dashed;
  background: #fcfaef;
}

.lp-hero__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.lp-hero__cta-note { color: #667085; font-size: 12.5px; }

/* CTAボタン（デモの業種ピッカーと同じピル＋グラデーション） */
.lp-cta {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 22px;
  border: 1px solid #2c55a5;
  border-radius: 999px;
  background: linear-gradient(180deg, #3b6fc4 0%, #2f5cab 100%);
  box-shadow: 0 1px 3px rgba(31, 50, 81, 0.25);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.lp-cta:hover {
  border-color: #244e91;
  background: linear-gradient(180deg, #4479cf 0%, #3767ba 100%);
  box-shadow: 0 2px 10px rgba(44, 90, 168, 0.35);
}

.lp-cta--sub {
  border-color: #d7dce5;
  background: #ffffff;
  box-shadow: none;
  color: #2f5cab;
}
.lp-cta--sub:hover {
  border-color: #9aa7bd;
  background: #f7fafd;
  box-shadow: none;
}

/* ── ボード画面画像 ── */
.lp-shot { margin: 0 0 20px; }

/* ホバー/フォーカスで「このデモを開く」ピルを重ね、クリックできることを示す */
.lp-shot a {
  position: relative;
  display: block;
}

.lp-shot a::after {
  content: "このデモを開く";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 9px 20px;
  border: 1px solid #2c55a5;
  border-radius: 999px;
  background: rgba(47, 92, 171, 0.92);
  box-shadow: 0 2px 10px rgba(44, 90, 168, 0.35);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.16s ease;
  pointer-events: none;
}

.lp-shot a:hover::after,
.lp-shot a:focus-visible::after {
  opacity: 1;
}

.lp-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #ccd5e2;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(31, 41, 55, 0.10);
  transition: border-color 0.16s ease;
}

.lp-shot a:hover img {
  border-color: #8ba8d7;
}

.lp-shot figcaption {
  margin-top: 6px;
  color: #667085;
  font-size: 12.5px;
  text-align: center;
}

/* ── セクション（白カード） ── */
.lp-section,
.lp-close {
  box-sizing: border-box;
  margin-bottom: 16px;
  padding: 18px 22px;
  border: 1px solid #d7dce5;
  border-radius: 10px;
  background: #ffffff;
}

.lp-section__title {
  margin: 0 0 4px;
  font-size: 16.5px;
  font-weight: 700;
}

/* 折りたたみセクション。summary内のh2はインライン化してマーカーと横並びにする */
.lp-section--fold > .lp-section__summary {
  cursor: pointer;
  color: #1f2937;
}

.lp-section--fold > .lp-section__summary::marker {
  color: #98a2b3;
  font-size: 12px;
}

.lp-section--fold > .lp-section__summary:hover {
  color: #244e91;
}

.lp-section--fold .lp-section__title {
  display: inline;
  margin: 0;
}

.lp-section--fold[open] > .lp-section__summary {
  margin-bottom: 8px;
}

.lp-section__count {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef1f6;
  color: #475467;
  font-size: 12.5px;
  font-weight: 600;
  vertical-align: 2px;
}

.lp-section__desc {
  margin: 0 0 10px;
  padding: 6px 10px;
  border-left: 3px solid #b6c8f2;
  border-radius: 0 6px 6px 0;
  background: #f3f6fd;
  color: #384766;
  font-size: 13px;
}

.lp-section--about p { margin: 0; font-size: 14px; color: #475467; }
.lp-section--about b { color: #1f2937; }

.lp-section__more { margin: 8px 0 0; font-size: 13.5px; }

/* ── 対応表（情報パネルと同じ密度） ── */
.lp-table-wrap { overflow-x: auto; }

.lp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.lp-table th {
  padding: 4px 8px 4px 0;
  border-bottom: 1px solid #e4e7ec;
  color: #667085;
  font-weight: 600;
  text-align: left;
}

.lp-table td {
  padding: 5px 8px 5px 0;
  border-bottom: 1px solid #f2f4f7;
  color: #475467;
  vertical-align: top;
}

.lp-table td:last-child { color: #1f2937; font-weight: 600; }
.lp-table tr:last-child td { border-bottom: none; }

/* ── 項目リスト（追加フィールド・一覧・集計） ── */
.lp-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-item {
  padding: 8px 0;
  border-bottom: 1px solid #f2f4f7;
}
.lp-item:last-child { border-bottom: none; }

.lp-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lp-item__name {
  color: #1f2937;
  font-size: 13.5px;
  font-weight: 600;
}

.lp-badge {
  flex: 0 0 auto;
  padding: 1px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #3454b4;
  font-size: 12px;
  white-space: nowrap;
}

.lp-item__note {
  margin-top: 2px;
  color: #667085;
  font-size: 12.5px;
}

/* ── デモ実例（案件と工程の流れ） ── */
.lp-case {
  padding: 10px 0 2px;
  border-top: 1px solid #f2f4f7;
}

.lp-case__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 14px;
}

.lp-case__project {
  color: #667085;
  font-weight: 600;
}

.lp-case__name {
  color: #1f2937;
  font-weight: 700;
}

.lp-case__desc {
  margin: 0 0 8px;
  color: #667085;
  font-size: 12.5px;
}

/* 工程の流れ。チップを矢印でつなぎ、ボードと同じ状態色で塗り分ける */
.lp-case__flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 2px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.lp-case__step {
  display: flex;
  align-items: center;
}

/* 工程チップの後ろに接続の矢印。最後の工程には付けない */
.lp-case__step:not(:last-child)::after {
  content: "\2192";
  margin: 0 2px 0 8px;
  color: #b6c0d2;
}

.lp-case__pill {
  box-sizing: border-box;
  padding: 3px 11px;
  border: 1px solid #d7dce5;
  border-radius: 999px;
  background: #ffffff;
  color: #475467;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.lp-case__pill.is-doing {
  border-color: #f2d3da;
  background: #fdeef1;
  color: #b4415f;
}

.lp-case__pill.is-done {
  border-color: #cfe7d8;
  background: #e9f5ee;
  color: #2e7d4f;
}

.lp-case__pill.is-more {
  border-style: dashed;
  color: #98a2b3;
  font-weight: 400;
}

.lp-case__excerpt {
  margin: 0 0 8px;
  color: #667085;
  font-size: 12.5px;
}

/* 凡例の色玉（セクション説明文の中に置く） */
.lp-case__dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: 0 3px 0 6px;
  border: 1px solid #d7dce5;
  border-radius: 50%;
  background: #ffffff;
  vertical-align: -1px;
}

.lp-case__dot.is-doing { border-color: #f2d3da; background: #fdeef1; }
.lp-case__dot.is-done { border-color: #cfe7d8; background: #e9f5ee; }

/* ── 業種チップ ── */
.lp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lp-chip {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border: 1px solid #dce3ed;
  border-radius: 999px;
  background: #ffffff;
  color: #28364f;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.lp-chip:hover {
  border-color: #8ba8d7;
  color: #244e91;
  box-shadow: 0 3px 10px rgba(44, 90, 168, 0.10);
}

/* ── 締めCTA ── */
.lp-close { text-align: center; padding: 26px 22px; }

.lp-close__title { margin: 0 0 6px; font-size: 18px; font-weight: 700; }

.lp-close__lead {
  margin: 0 auto 16px;
  max-width: 34em;
  color: #475467;
  font-size: 13.5px;
  text-wrap: pretty;
}

.lp-close__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* かんたくん＋吹き出し（業種ピッカーの紹介フッターと同じ組み合わせ） */
.lp-close__kanta {
  display: flex;
  align-items: flex-end;
  gap: 11px;
  max-width: 30em;
  margin: 0 auto 12px;
  text-align: left;
}

.lp-close__mascot {
  flex: none;
  width: 46px;
  height: auto;
  margin-bottom: 4px;
  opacity: 0.9;
  filter: drop-shadow(0 1px 2px rgba(34, 48, 74, 0.25));
}

.lp-close__bubble {
  position: relative;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 8px 13px;
  border: 1px solid #e3e9f2;
  border-radius: 9px;
  background: #f7f9fc;
  color: #475467;
  font-size: 13px;
  line-height: 1.7;
}

/* 吹き出しのしっぽ。かんたくんの頭の高さ（下寄り）を向く */
.lp-close__bubble::before {
  content: "";
  position: absolute;
  left: -5px;
  bottom: 13px;
  width: 9px;
  height: 9px;
  border-left: 1px solid #e3e9f2;
  border-bottom: 1px solid #e3e9f2;
  background: #f7f9fc;
  transform: rotate(45deg);
}

/* ── フッタ ── */
.lp-footer {
  box-sizing: border-box;
  padding: 18px 20px 26px;
  border-top: 1px solid #ccd5e2;
  background: #f0f4f9;
}

.lp-footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 8px;
  font-size: 13px;
}

.lp-footer__note {
  margin: 0 auto;
  max-width: 46em;
  color: #98a2b3;
  font-size: 11.5px;
  text-align: center;
  text-wrap: pretty;
}

/* 印刷の案内行。ボタンはリンク風にして主張を抑える */
.lp-close__print {
  margin: 14px 0 0;
  color: #98a2b3;
  font-size: 12px;
}

.lp-print-button {
  margin: 0 1px;
  padding: 0;
  border: none;
  background: none;
  color: #2f5cab;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.lp-print-button:hover { color: #244e91; }

/* 印刷時のみ出すURLメモ（紙からデモへ戻る導線） */
.lp-footer__print-note {
  display: none;
  margin: 0 auto 8px;
  color: #667085;
  font-size: 11.5px;
  text-align: center;
}

@media (max-width: 620px) {
  .lp-hero__title { font-size: 21px; }
  .lp-section, .lp-close { padding: 14px 16px; }
}

/* ── 印刷: ナビ・CTAを外し、そのまま社内共有できる1枚の検討資料として出力する ── */
@media print {
  body { background: #ffffff; }

  .lp-bar,
  .lp-breadcrumb,
  .lp-hero__cta,
  .lp-close,
  .lp-section--related,
  .lp-section__more,
  .lp-footer__nav {
    display: none !important;
  }

  .lp {
    max-width: none;
    padding: 0 0 16px;
  }

  /* 改ページ禁止は項目単位にとどめ、セクション途中での改ページは許して紙面を詰める */
  .lp-case, .lp-item, .lp-shot, .lp-hero__mini, .lp-table tr {
    break-inside: avoid;
  }

  .lp-section__summary, .lp-section__desc {
    break-after: avoid;
  }

  .lp-footer { border-top: none; background: #ffffff; padding: 8px 0 0; }
  .lp-footer__print-note { display: block; }

  /* 状態色・カード色は資料の情報なので印刷でも保持する */
  .lp-case__pill,
  .lp-case__dot,
  .lp-hero__mini-lane,
  .lp-hero__mini-card,
  .lp-hero__words-label,
  .lp-badge,
  .lp-section__desc {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
