.shindan-root {
    --navy: #1a2f52;
    --navy-light: #26426f;
    --accent: #4a90d9;
    --accent-soft: #eaf2fb;
    --bg: #ffffff;
    --text: #2b2f36;
    --text-sub: #5c6270;
    --border: #e3e7ee;
    --radius-s: 4px;
    --radius-m: 6px;
    --radius-l: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .shindan-root, .shindan-root *, .shindan-root *::before, .shindan-root *::after { box-sizing: border-box; }
  .shindan-root {
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
    color: var(--text);
    background: #f4f6f9;
    line-height: 1.8;
    font-size: 16px;
    margin: 0 -16px;
    padding: 10px 16px 24px;
    overflow-x: hidden;
  }

  .shindan-root a { color: var(--accent); text-decoration: none; }
  a:hover { text-decoration: underline; }
.shindan-root .page-header {
    text-align: center;
    padding: 28px 20px 10px;
  }
  .shindan-root .page-header .logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
  }
  .shindan-root .page-header .logo span { color: var(--accent); }
  .shindan-root .page-header h1 {
    font-size: clamp(20px, 4vw, 26px);
    color: var(--navy);
    margin: 6px 0 4px;
    font-weight: 800;
  }
  .shindan-root .page-header p {
    font-size: 14px;
    color: var(--text-sub);
    margin: 0;
  }

  /* ---------- チャットシェル ---------- */
  .chat-shell {
    max-width: 620px;
    margin: 24px auto 48px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .chat-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--navy);
    color: #fff;
  }
  .chat-topbar .guide-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
  }
  .chat-topbar .guide-info {
    flex: 1;
    min-width: 0;
  }
  .chat-topbar .guide-name {
    font-size: 14px;
    font-weight: 700;
  }
  .chat-topbar .guide-sub {
    font-size: 12px;
    color: #cdd8e8;
  }
  .chat-topbar .progress-label {
    font-size: 12px;
    color: #cdd8e8;
    white-space: nowrap;
  }

  .progress-track {
    height: 4px;
    background: #e3e7ee;
  }
  .progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.35s ease;
  }

  .chat-log {
    flex: 1;
    min-height: 420px;
    max-height: 560px;
    overflow-y: auto;
    padding: 20px 18px;
    background: #fafbfd;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .msg-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 90%;
  }
  .msg-row.guide { align-self: flex-start; }
  .msg-row.user {
    align-self: flex-end;
    flex-direction: row-reverse;
  }
  .msg-avatar {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
  }
  .msg-row.guide .msg-avatar { background: var(--navy); }
  .msg-row.user .msg-avatar { background: var(--accent); }

  .msg-bubble {
    background: #fff;
    border: 1px solid var(--border);
    padding: 11px 15px;
    border-radius: var(--radius-l);
    font-size: 14.5px;
    line-height: 1.7;
    white-space: pre-line;
  }
  .msg-row.guide .msg-bubble {
    border-bottom-left-radius: 2px;
  }
  .msg-row.user .msg-bubble {
    background: var(--accent-soft);
    border-color: transparent;
    border-bottom-right-radius: 2px;
  }

  /* タイピングインジケータ */
  .typing-bubble {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 13px 16px;
  }
  .typing-bubble span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-sub);
    opacity: 0.5;
    animation: typingBounce 1.2s infinite ease-in-out;
  }
  .typing-bubble span:nth-child(2) { animation-delay: 0.15s; }
  .typing-bubble span:nth-child(3) { animation-delay: 0.3s; }
  @keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
  }

  /* ---------- 選択肢パネル ---------- */
  .options-panel {
    padding: 14px 18px 18px;
    border-top: 1px solid var(--border);
    background: #fff;
  }
  .options-panel .options-hint {
    font-size: 12px;
    color: var(--text-sub);
    margin: 0 0 10px;
  }
  .options-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
  }
  .option-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid var(--accent);
    color: var(--navy);
    padding: 11px 15px;
    border-radius: var(--radius-l);
    font-size: 14.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
  }
  .option-btn:hover {
    background: var(--accent-soft);
  }
  .option-btn:active {
    transform: scale(0.99);
  }
  .option-btn:disabled {
    opacity: 0.5;
    cursor: default;
  }

  .restart-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--navy);
    color: #fff;
    border: none;
    padding: 12px 15px;
    border-radius: var(--radius-l);
    font-size: 14.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
  }
  .restart-btn:hover { background: var(--navy-light); }

  /* ---------- 結果カード ---------- */
  .result-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-l);
    padding: 22px 20px;
    box-shadow: var(--shadow);
    max-width: 92%;
  }
  .result-card .result-eyebrow {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
  }
  .result-card h2 {
    font-size: 20px;
    color: var(--navy);
    margin: 0 0 12px;
    font-weight: 800;
  }
  .result-card .result-desc {
    font-size: 14.5px;
    color: var(--text);
    margin: 0 0 18px;
    line-height: 1.8;
    white-space: pre-line;
  }
  .result-card .result-links {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
  }
  .result-card .result-links li {
    margin-bottom: 8px;
  }
  .result-card .result-links a {
    display: block;
    background: var(--accent-soft);
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    padding: 11px 14px;
    border-radius: var(--radius-m);
  }
  .result-card .result-links a:hover {
    background: #dcebfa;
    text-decoration: none;
  }
  .result-card .result-links a::after {
    content: " \2192";
    color: var(--accent);
  }

  .cta-contact {
    display: block;
    text-decoration: none;
  }
.cta-note-small {
    font-size: 11.5px;
    color: var(--text-sub);
    text-align: center;
    margin: 0;
  }

  .disclaimer {
    font-size: 12px;
    color: var(--text-sub);
    text-align: center;
    max-width: 620px;
    margin: 0 auto 40px;
    padding: 0 20px;
  }

  /* ---------- レスポンシブ ---------- */
  @media (max-width: 680px) {
    .chat-shell {
      margin: 16px 12px 32px;
      border-radius: var(--radius-l);
    }
    .chat-log {
      min-height: 380px;
      max-height: 60vh;
    }
  }

  @media (max-width: 400px) {
    .shindan-root .page-header h1 { font-size: 19px; }
    .msg-bubble { font-size: 14px; }
    .option-btn { font-size: 14px; padding: 10px 12px; }
  }
