:root {
  --ink: #1d1d1f;
  --sub: #5c5c63;
  --line: #e2e2e6;
  --bg: #f6f6f4;
  --c: #2c6fb7;
  --t: #eef3fa;
  font-family: system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  color: var(--ink);
  line-height: 1.7;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: inherit; }
p, h1, h2 { margin: 0; }
p, li { text-wrap: pretty; }

/* ===== 一覧 ===== */
.top-main { max-width: 960px; margin: 0 auto; padding: 56px 16px 64px; }
.top-kicker { font-size: 13px; color: var(--sub); letter-spacing: .04em; }
.top-title { font-size: 28px; line-height: 1.45; margin-top: 8px; font-weight: 700; }
.nb { display: inline-block; }
.top-lead { margin-top: 12px; color: var(--sub); max-width: 40em; }
.cards { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 20px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  border-top: 4px solid var(--c); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.06); border-color: var(--c); }
.card-industry { font-size: 13px; color: var(--c); font-weight: 700; }
.card-name { font-size: 19px; font-weight: 700; }
.card-q { font-size: 14px; color: var(--sub); }
.card-go { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 700; color: var(--c); }
.top-note { margin-top: 40px; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.top-note h2 { font-size: 16px; }
.top-note ul { margin: 8px 0 0; padding-left: 1.2em; }
.top-note li { margin: 4px 0; }
.top-small { margin-top: 12px; font-size: 13px; color: var(--sub); }

/* ===== デモ画面 ===== */
.bar {
  height: 44px; display: flex; align-items: center; gap: 16px; padding: 0 104px 0 16px;
  background: var(--ink); color: #fff; font-size: 13px;
}
.bar-back { text-decoration: none; opacity: .85; white-space: nowrap; }
.bar-back:hover { opacity: 1; }
.bar-label { opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.site { background: #fff; }

/* このデモの見方（ページの上に置く案内） */
.guide { background: #fff; border-bottom: 1px solid var(--line); }
.guide-in { max-width: 1120px; margin: 0 auto; padding: 18px 432px 16px 24px; }
.guide-title { font-size: 19px; font-weight: 700; line-height: 1.5; }
.guide-steps { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.guide-steps li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.guide-steps b {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff;
  font-size: 12px; display: inline-flex; align-items: center; justify-content: center;
}

.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 32px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.site-logo { font-weight: 700; font-size: 18px; color: var(--c); }
.site-nav { display: flex; gap: 20px; font-size: 14px; color: var(--sub); flex-wrap: wrap; }
.site-hero { padding: 56px 432px 56px 32px; background: var(--t); }
.site-catch { font-size: 30px; font-weight: 700; line-height: 1.45; }
.site-lead { margin-top: 12px; max-width: 36em; color: var(--sub); }
.site-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 28px 432px 0 32px; }
.info-box { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.info-h { font-size: 13px; color: var(--c); font-weight: 700; }
.info-b { margin-top: 4px; font-size: 14px; white-space: pre-line; }
.site-sections { padding: 12px 432px 32px 32px; }
.sec { padding: 20px 0; border-bottom: 1px solid var(--line); }
.sec h2 { font-size: 17px; }
.sec p { margin-top: 6px; color: var(--sub); }
.site-foot { padding: 20px 32px 120px; font-size: 12px; color: var(--sub); }

.try { margin-top: 12px; }
.try-title { font-size: 12px; color: var(--sub); }
.try-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.try-q {
  font: inherit; font-size: 13px; line-height: 1.4; text-align: left;
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--c); color: var(--c); background: #fff; cursor: pointer;
}
.try-q:hover { background: var(--t); }

/* 右下のチャット。実際のホームページに置いたときと同じ位置・大きさにする */
.chatwin {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 380px; height: min(640px, calc(100vh - 84px));
  border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22); border: 1px solid var(--line);
}
.chatwin iframe { width: 100%; height: 100%; border: 0; display: block; }
.chatwin-min {
  position: absolute; top: 8px; right: 44px; z-index: 2;
  font: inherit; font-size: 12px; color: #fff; background: rgba(0, 0, 0, .25);
  border: 0; border-radius: 999px; padding: 3px 10px; cursor: pointer;
}
.chat-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; display: none;
  font: inherit; font-size: 14px; font-weight: 700; color: #fff; background: var(--c);
  border: 0; border-radius: 999px; padding: 12px 20px; cursor: pointer; box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
}
body.chat-closed .chatwin { display: none; }
body.chat-closed .chat-launch { display: block; }

@media (max-width: 900px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .top-main { padding-top: 36px; }
  .top-title { font-size: 20px; }
  .guide-in { padding: 14px 16px 12px; }
  .guide-title { font-size: 16px; }
  .guide-steps { flex-direction: column; gap: 4px; }
  .site-head, .site-hero, .site-info, .site-sections, .site-foot { padding-left: 16px; padding-right: 16px; }
  .site-hero { padding-top: 32px; padding-bottom: 32px; }
  .site-catch { font-size: 22px; }
  .site-info { grid-template-columns: minmax(0, 1fr); }
  /* スマホは質問のボタンを横に流れる1列にして、案内とチャット窓が重ならないようにする */
  .try-list { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .try-q { flex: none; white-space: nowrap; }
  .chatwin { left: 8px; right: 8px; bottom: 8px; width: auto; height: min(48vh, calc(100vh - 300px)); min-height: 300px; }
  .chat-launch { right: 12px; bottom: 12px; }
}

/* ===== 説明モード ===== */
.tour { position: fixed; inset: 0; z-index: 1000; display: none; }
.tour.tour-dim { background: rgba(10, 16, 28, .62); }
.tour-hole {
  position: fixed; border-radius: 10px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(10, 16, 28, .62); outline: 2px solid rgba(255, 255, 255, .9);
  transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease;
}
.tour-card {
  position: fixed; background: #fff; border-radius: 12px; padding: 18px 20px 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28); transition: top .25s ease, left .25s ease;
}
.tour-count { font-size: 12px; font-weight: 700; color: var(--c); font-variant-numeric: tabular-nums; }
.tour-title { margin-top: 4px; font-size: 17px; font-weight: 700; }
.tour-body { margin-top: 6px; font-size: 14px; line-height: 1.85; color: var(--ink); }
.tour-foot { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; }
.tour-skip { font: inherit; font-size: 13px; color: var(--sub); background: none; border: 0; cursor: pointer; padding: 6px 2px; }
.tour-next { font: inherit; font-size: 14px; font-weight: 700; color: #fff; background: var(--c); border: 0; border-radius: 8px; padding: 8px 20px; cursor: pointer; }
.tour-again {
  /* 上の黒い帯の右端に置く（下に置くとホームページの文字やチャットに重なるため） */
  position: fixed; right: 12px; top: 7px; z-index: 900; display: none; padding: 5px 14px !important;
  font: inherit; font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); cursor: pointer;
}
