/* ル・アンジェ デモ 共通スタイル
   配色は公式サイト（leange.co.jp）から抽出したやさしいトーン */

:root {
  --cream:       #f7f3ec;
  --cream-2:     #f2e8d5;
  --card:        #ffffff;
  --coral:       #ff6b6b;
  --coral-dark:  #e85d5d;
  --coral-soft:  #ffe0df;
  --lavender:    #c3c4e9;
  --lavender-2:  #b4a7d6;
  --lavender-soft:#ecedf9;
  --yellow:      #ffaf00;
  --yellow-soft: #fff2d6;
  --ink:         #444444;
  --ink-soft:    #7a736f;
  --navy:        #00048a;
  --line:        #ece6dd;
  --green:       #4caf7d;
  --green-soft:  #dcf1e7;

  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 6px 24px rgba(120, 100, 90, .10);
  --shadow-sm:   0 2px 8px rgba(120, 100, 90, .08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
               "Yu Gothic", Meiryo, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- レイアウト ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.site-header {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 20px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--coral), var(--yellow));
  display: grid; place-items: center; color: #fff; font-size: 18px;
}
.brand .name { color: var(--navy); letter-spacing: .02em; }
.brand .sub { color: var(--ink-soft); font-size: 11px; font-weight: 500; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 13.5px;
  color: var(--ink-soft); font-weight: 500;
}
.nav a:hover { background: var(--cream-2); color: var(--ink); }
.nav a.active { background: var(--coral); color: #fff; }

/* ---------- ページ見出し ---------- */
.page-head { padding: 32px 0 20px; }
.page-head h1 { margin: 0 0 4px; font-size: 24px; }
.page-head .lead { color: var(--ink-soft); margin: 0; font-size: 14px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--coral-dark); letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 6px;
}

/* ---------- カード ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}

/* ---------- バッジ ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-new     { background: var(--coral-soft);   color: var(--coral-dark); }
.badge-progress{ background: var(--yellow-soft);  color: #b57d00; }
.badge-hold    { background: #eee;                color: #777; }
.badge-done    { background: var(--green-soft);   color: var(--green); }
.badge-parent  { background: var(--lavender-soft);color: #5b57a6; }
.badge-sitter  { background: #e6f2ff;             color: #2f6fb0; }
.badge-yellow  { background: var(--yellow-soft);  color: #b57d00; }
.badge-line    { background: var(--green-soft);   color: var(--green); }
.badge-mail    { background: var(--lavender-soft);color: #5b57a6; }
.badge-phone   { background: var(--coral-soft);   color: var(--coral-dark); }
.badge-regular { background: var(--coral-soft);   color: var(--coral-dark); }
.badge-outline { background: #fff; border: 1px solid var(--line); color: var(--ink-soft); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; transition: .15s;
}
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--cream-2); }
.btn-lav { background: var(--lavender-2); color: #fff; }
.btn-lav:hover { filter: brightness(.95); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- AI要約カード ---------- */
.ai-card {
  background: linear-gradient(135deg, #fff, var(--lavender-soft));
  border: 1px solid var(--lavender);
  border-radius: var(--radius); padding: 18px 20px; position: relative;
}
.ai-card .ai-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-weight: 700; color: #5b57a6;
}
.ai-card .ai-badge {
  font-size: 11px; background: var(--lavender-2); color: #fff;
  padding: 2px 9px; border-radius: 999px; font-weight: 700; letter-spacing: .04em;
}
.ai-card .ai-overview { margin: 0 0 12px; font-size: 14.5px; }
.ai-points { margin: 0; padding-left: 18px; }
.ai-points li { margin-bottom: 4px; font-size: 13.5px; }
.ai-action {
  margin-top: 12px; padding: 10px 12px; background: #fff;
  border-radius: var(--radius-sm); border: 1px dashed var(--lavender-2);
  font-size: 13.5px;
}
.ai-action b { color: #5b57a6; }

/* ---------- スレッド ---------- */
.thread { display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 12px; max-width: 82%; }
.msg .avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 38px;
  display: grid; place-items: center; font-size: 18px; background: var(--cream-2);
}
.msg .bubble {
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-sm);
}
.msg .meta { font-size: 11.5px; color: var(--ink-soft); margin-bottom: 3px; }
.msg .body { font-size: 14px; white-space: pre-wrap; }
.msg.staff { align-self: flex-end; flex-direction: row-reverse; }
.msg.staff .bubble { background: var(--coral-soft); border-color: #ffd1cf; }
.msg.staff .avatar { background: var(--coral); color: #fff; }

/* ---------- モーダル ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(60,45,40,.45);
  display: none; align-items: center; justify-content: center; z-index: 100;
  padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius); width: 100%; max-width: 460px;
  box-shadow: var(--shadow); overflow: hidden; animation: pop .18s ease;
}
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.modal .modal-head {
  padding: 18px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.modal .modal-body { padding: 20px; }
.modal .close {
  margin-left: auto; background: var(--cream-2); border: none;
  width: 30px; height: 30px; border-radius: 50%; font-size: 16px; color: var(--ink-soft);
}
.avatar-lg {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px; background: var(--cream-2);
}
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 8px 12px; font-size: 14px; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; }

/* ---------- テーブル/リスト共通 ---------- */
.list-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  border-bottom: 1px solid var(--line); cursor: pointer; transition: .12s;
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: var(--cream); }
.list-row.selected { background: var(--coral-soft); }

.muted { color: var(--ink-soft); }
.small { font-size: 12.5px; }
.pill-toggle {
  display: inline-flex; background: var(--cream-2); border-radius: 999px; padding: 3px;
}
.pill-toggle button {
  border: none; background: transparent; padding: 6px 14px; border-radius: 999px;
  font-size: 13px; color: var(--ink-soft); font-weight: 600;
}
.pill-toggle button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- トップページ ---------- */
.hero {
  background: linear-gradient(135deg, var(--coral-soft), var(--cream-2) 60%, var(--lavender-soft));
  border-radius: 24px; padding: 48px 40px; margin: 28px 0;
  position: relative; overflow: hidden;
}
.hero h1 { font-size: 32px; margin: 0 0 12px; line-height: 1.4; }
.hero h1 .accent { color: var(--coral-dark); }
.hero p { font-size: 15px; color: var(--ink-soft); margin: 0 0 22px; max-width: 560px; }
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0 48px; }
.demo-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); transition: .18s; display: block;
}
.demo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.demo-card .ic {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font-size: 26px; margin-bottom: 16px;
}
.demo-card h3 { margin: 0 0 8px; font-size: 18px; }
.demo-card p { margin: 0 0 16px; font-size: 13.5px; color: var(--ink-soft); }
.demo-card .go { color: var(--coral-dark); font-weight: 700; font-size: 13.5px; }

.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.feature-tags span {
  font-size: 12px; background: var(--cream-2); padding: 4px 11px; border-radius: 999px;
  color: var(--ink-soft);
}

/* ---------- 2カラム ---------- */
.split { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
.split .col-list { position: sticky; top: 80px; }

.section-title { font-size: 13px; font-weight: 700; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; }

.empty {
  padding: 60px 20px; text-align: center; color: var(--ink-soft);
}
.empty .big { font-size: 40px; margin-bottom: 10px; }

/* スコアバー */
.score-bar { height: 8px; background: var(--cream-2); border-radius: 999px; overflow: hidden; }
.score-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--yellow), var(--coral)); }

/* トースト */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: 14px; box-shadow: var(--shadow); opacity: 0; transition: .25s; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 900px) {
  .demo-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split .col-list { position: static; }
  .nav { display: none; }
}
