/* 業界別デモ
   色：文字は紺、強調はバイオレット1色。グラデーションは塗りボタンだけ。注意の文字はマゼンタ寄り。
   余白：区切り24・枠の中16・小さな間隔8。角丸は6pxの1種類。影は使わない。 */
:root {
  --navy: #1E3050;
  --ink: #1E2633;
  --sub: #5B6475;
  --line: #DCE0E8;
  --bg: #F4F5F8;
  --bg-2: #F9FAFB;
  --accent: #7A6FD2;
  --accent-text: #5A4FC0;
  --accent-weak: #EEECFA;
  --ok: #1F7A54;
  --ok-weak: #E6F4EE;
  --warn: #B8307F;
  --warn-weak: #FBEAF3;
  --grad: linear-gradient(100deg, #2EA7E0 0%, #7A6FD2 55%, #D6409F 100%);
  --r: 6px;
  --s1: 8px; --s2: 16px; --s3: 24px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: "LINE Seed JP", sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  line-height: 1.75;
  word-break: auto-phrase;
}
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; color: inherit; cursor: pointer; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; vertical-align: -0.2em; }

/* 押したときの手応え。枠は出さず、沈む動きと波紋で伝える */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-main, .btn-line, .pick-card, .inbox-item { transition: transform .12s ease, background-color .15s ease, border-color .15s ease; }
.btn-main:active, .btn-line:active, .pick-card:active, .inbox-item:active { transform: scale(.97); }
.tap-ripple {
  position: fixed; z-index: 9999; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--accent); opacity: .4; pointer-events: none;
  animation: tapRipple .5s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes tapRipple { to { transform: scale(5.5); opacity: 0; } }

/* ---------------------------------------------------------------- ヘッダー */
.hd {
  display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap;
  padding: 12px var(--s3); border-bottom: 1px solid var(--line); background: #fff;
}
.hd-logo { display: block; line-height: 0; }
.hd-logo img { height: 28px; width: auto; }
.hd-name { font-size: 15px; font-weight: 700; color: var(--navy); }
.hd-crumb { display: flex; align-items: center; gap: var(--s1); font-size: 13px; color: var(--sub); }
.hd-crumb a { color: var(--accent-text); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.hd-crumb a:hover { text-decoration: underline; }
.hd-note { margin-left: auto; font-size: 12px; color: var(--sub); }

/* ---------------------------------------------------------------- 業界を選ぶ */
.pick { max-width: 1120px; margin: 0 auto; padding: 40px var(--s3) 48px; }
.pick-title { font-size: 24px; font-weight: 800; color: var(--navy); }
.pick-lead { margin-top: var(--s1); font-size: 14px; color: var(--sub); max-width: 46em; }
.pick-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s2);
  margin-top: var(--s3);
}
.pick-card {
  display: flex; flex-direction: column; gap: var(--s1); text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: var(--s2);
}
.pick-card:hover { border-color: var(--accent); background: var(--accent-weak); }
.pick-name { display: flex; align-items: center; gap: var(--s1); font-size: 18px; font-weight: 800; color: var(--navy); }
.pick-name .ic { width: 22px; height: 22px; color: var(--accent); }
.pick-who { font-size: 12px; color: var(--sub); }
.pick-hook { font-size: 13px; color: var(--ink); line-height: 1.65; flex: 1; }
.pick-go { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--accent-text); }

.flow {
  display: flex; align-items: center; gap: var(--s2); margin-top: 40px;
  background: var(--bg); border-radius: var(--r); padding: var(--s2) var(--s3);
}
.flow-col { flex: 1; min-width: 0; }
.flow-h { font-size: 13px; font-weight: 700; color: var(--navy); }
.flow-items { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--ink); }
.flow-items span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.flow-items .ic { color: var(--accent); }
.flow-sub { margin-top: 4px; font-size: 12px; color: var(--sub); }
.flow-mid .flow-h { color: var(--accent-text); font-size: 15px; }
.flow-arrow { width: 20px; height: 20px; color: var(--sub); }

/* ---------------------------------------------------------------- 業界のデモ */
.ind { max-width: 1180px; margin: 0 auto; padding: 32px var(--s3) 48px; }
.ind-title { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; color: var(--navy); }
.ind-title .ic { width: 26px; height: 26px; color: var(--accent); }
.ind-title small { font-size: 14px; font-weight: 400; color: var(--sub); }
.ind-lead { margin-top: var(--s1); max-width: 52em; }
.ind-back { margin-top: var(--s1); font-size: 12px; color: var(--sub); }

.sec { margin-top: 40px; }
.sec-hd { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.sec-h { display: flex; align-items: baseline; gap: 10px; font-size: 18px; font-weight: 800; color: var(--navy); }
.num { font-size: 18px; font-weight: 800; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.sec-lead { margin-top: var(--s1); font-size: 13px; color: var(--sub); }
.sec-hd .btn-line { margin-left: auto; }

.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin-top: var(--s2); }
.pain { border: 1px solid var(--line); border-radius: var(--r); padding: var(--s2); }
.pain-h { display: flex; align-items: center; gap: var(--s1); font-size: 15px; font-weight: 700; color: var(--navy); }
.pain-h .ic { width: 22px; height: 22px; color: var(--accent); }
.pain-d { margin-top: var(--s1); font-size: 13px; line-height: 1.75; }

/* ボタン：塗りは1画面に1つ（.btn-main）。ほかは縁取り */
.btn-main {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  border: 0; border-radius: var(--r); padding: 11px 22px; background: var(--grad);
  color: #fff; font-size: 14px; font-weight: 700;
}
.btn-main:hover { filter: brightness(1.05); }
.btn-main[disabled] { background: var(--line); color: var(--sub); cursor: default; filter: none; }
.btn-line {
  display: inline-flex; align-items: center; gap: 6px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); padding: 7px 14px;
  font-size: 13px; color: var(--navy);
}
.btn-line:hover { border-color: var(--accent); color: var(--accent-text); }

/* デモ：左に受付、右に処理 */
.demo { display: grid; grid-template-columns: 300px 1fr; gap: var(--s3); margin-top: var(--s2); align-items: start; }
.inbox { background: var(--bg); border-radius: var(--r); padding: var(--s2); position: sticky; top: 16px; }
.inbox-h { display: flex; align-items: center; gap: var(--s1); font-size: 14px; font-weight: 700; color: var(--navy); }
.inbox-n { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--sub); }
.inbox-list { list-style: none; margin: var(--s1) 0 0; padding: 0; display: grid; gap: var(--s1); }
.inbox-item {
  width: 100%; display: grid; gap: 2px; text-align: left; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px;
}
.inbox-item:hover { border-color: var(--accent); }
.inbox-item.on { background: var(--accent-weak); border-color: var(--accent); }
.inbox-top { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sub); }
.inbox-top .ic { color: var(--accent); }
.inbox-st { margin-left: auto; font-weight: 700; }
.inbox-st.s-new { color: var(--accent-text); }
.inbox-st.s-run { color: var(--sub); }
.inbox-st.s-done { color: var(--ok); }
.inbox-st.s-human { color: var(--warn); }
.inbox-title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.inbox-from { font-size: 12px; color: var(--sub); line-height: 1.5; }

.work { border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3); min-height: 420px; }
.empty { display: grid; justify-items: start; gap: var(--s2); padding: var(--s1) 0; }
.empty-h { display: flex; align-items: center; gap: var(--s1); font-size: 16px; font-weight: 700; color: var(--navy); }
.empty-h .ic { width: 22px; height: 22px; color: var(--accent); }
.empty p { color: var(--sub); }

.w-head { display: flex; align-items: center; gap: var(--s1); flex-wrap: wrap; font-size: 12px; color: var(--sub); }
.w-head .ic { color: var(--accent); }
.w-title { margin-top: 4px; font-size: 18px; font-weight: 800; color: var(--navy); }
.w-body {
  margin-top: var(--s2); background: var(--bg); border-radius: var(--r); padding: 12px var(--s2);
  white-space: pre-wrap; font-size: 13.5px;
}
.w-body-cap { display: block; margin-bottom: 4px; font-size: 12px; color: var(--sub); }

.steps { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: var(--s2); position: relative; }
/* 手順のアイコンは枠や丸に入れず、色だけで状態を示す */
.step-ic { width: 28px; height: 28px; display: grid; place-items: center; color: var(--sub); background: #fff; }
.step-ic .ic { width: 20px; height: 20px; }
.step.is-on .step-ic { color: var(--accent-text); }
.step.is-done .step-ic { color: var(--ok); }
.step.is-fail .step-ic, .step.is-human .step-ic { color: var(--warn); }
.step-t { display: flex; align-items: center; gap: var(--s1); flex-wrap: wrap; padding-top: 2px; font-size: 14px; font-weight: 700; color: var(--navy); }
.step-st { font-size: 12px; font-weight: 700; }
.step.is-on .step-st { color: var(--accent-text); }
.step.is-done .step-st { color: var(--ok); }
.step.is-fail .step-st, .step.is-human .step-st { color: var(--warn); }
.step-x { margin-top: 4px; font-size: 13px; line-height: 1.75; }
.step-rows { margin: var(--s1) 0 0; display: grid; grid-template-columns: 7.5em 1fr; gap: 2px 12px; font-size: 13px; }
.step-rows dt { color: var(--sub); }
.step-rows dd { margin: 0; }
.step.is-wait { opacity: .45; }
.step.is-wait .step-x, .step.is-wait .step-rows { display: none; }
.step.is-in { animation: stepIn .35s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.msg { margin-top: var(--s1); background: var(--bg); border-radius: var(--r); padding: 12px var(--s2); }
.msg-to { font-size: 12px; color: var(--sub); }
.msg-t { margin-top: 4px; white-space: pre-wrap; font-size: 13.5px; }
.keep { margin: var(--s1) 0 0; padding: 12px var(--s2); background: var(--warn-weak); border-radius: var(--r); }
.keep-h { font-size: 12px; font-weight: 700; color: var(--warn); }
.keep ul { margin: 4px 0 0; padding-left: 1.2em; font-size: 13px; }

.act { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s2); }
.act-note { font-size: 12px; color: var(--sub); }

/* 終わったあと：これまで人がしていたこと／これから人がすること */
.result { margin-top: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s3); }
.result-h { display: flex; align-items: center; gap: var(--s1); font-size: 16px; font-weight: 800; color: var(--ok); }
.result-h.is-human { color: var(--warn); }
.result-h .ic { width: 22px; height: 22px; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-top: var(--s2); }
.cmp-col { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s2); }
.cmp-col.after { background: var(--accent-weak); border-color: transparent; }
.cmp-h { font-size: 13px; font-weight: 700; color: var(--navy); }
.cmp-col.after .cmp-h { color: var(--accent-text); }
.cmp ol, .cmp ul { margin: var(--s1) 0 0; padding-left: 1.3em; font-size: 13px; }
.cmp li + li { margin-top: 2px; }
.next { margin-top: var(--s2); display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }

.sum { display: grid; gap: var(--s2); }
.sum-h { display: flex; align-items: center; gap: var(--s1); font-size: 18px; font-weight: 800; color: var(--navy); }
.sum-h .ic { width: 22px; height: 22px; color: var(--ok); }
.sum-list { margin: 0; padding-left: 1.3em; }
.sum-list li + li { margin-top: 4px; }
.sum-list b { color: var(--navy); }
.sum-more { font-size: 13px; color: var(--sub); }

.ft { padding: var(--s2) var(--s3) var(--s3); border-top: 1px solid var(--line); font-size: 12px; color: var(--sub); text-align: center; }

/* ---------------------------------------------------------------- 狭い幅 */
@media (max-width: 1100px) { .pick-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) {
  .demo { grid-template-columns: 1fr; }
  .inbox { position: static; }
  .pains { grid-template-columns: 1fr; }
  .flow { flex-direction: column; align-items: stretch; }
  .flow-arrow { transform: rotate(90deg); align-self: center; }
}
@media (max-width: 640px) {
  .hd { padding: 10px var(--s2); gap: var(--s1) var(--s2); }
  .hd-note { margin-left: 0; width: 100%; }
  .pick, .ind { padding: 24px var(--s2) 40px; }
  .pick-grid { grid-template-columns: 1fr; }
  .pick-title, .ind-title { font-size: 20px; }
  .work { padding: var(--s2); }
  .cmp { grid-template-columns: 1fr; }
  .step-rows { grid-template-columns: 1fr; gap: 0; }
  .step-rows dd { margin-bottom: 4px; }
  .sec-hd .btn-line { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-main:active, .btn-line:active, .pick-card:active, .inbox-item:active { transform: none; }
  .tap-ripple { display: none; }
  .step.is-in { animation: none; }
}

a.btn-line { text-decoration: none; }
