*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

#sc {
  font-family: 'Noto Sans JP', -apple-system, sans-serif;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px 80px;
  color: #1a1a1a;
}

/* ===== PROGRESS ===== */
.sc-progress { padding: 20px 0 0; margin-bottom: 28px; }
.sc-progress-bar { height: 3px; background: #f0f0f0; border-radius: 2px; overflow: hidden; margin-bottom: 10px; }
.sc-progress-fill { height: 100%; background: #E89B5C; border-radius: 2px; transition: width 0.35s ease; }
.sc-progress-label { font-size: 0.72rem; color: #aaa; text-align: right; }

/* ===== QUESTION CARD ===== */
.sc-card { animation: scFadeIn 0.3s ease; }
@keyframes scFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sc-q-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; color: #E89B5C; margin-bottom: 10px; }
.sc-q-text  { font-size: 1.1rem; font-weight: 900; line-height: 1.5; margin-bottom: 6px; }
.sc-q-sub   { font-size: 0.82rem; color: #999; margin-bottom: 24px; }

/* OPTIONS */
.sc-opts { display: flex; flex-direction: column; gap: 10px; }
.sc-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 2px solid #f0f0f0; border-radius: 10px;
  cursor: pointer; transition: all 0.15s; background: #fff;
  font-size: 0.9rem; font-family: inherit; text-align: left; width: 100%;
}
.sc-opt:hover { border-color: #E89B5C; }
.sc-opt.selected { border-color: #E89B5C; background: #fdf7f2; font-weight: 700; }
.sc-opt-dot {
  width: 20px; height: 20px; border: 2px solid #ddd; border-radius: 50%;
  flex-shrink: 0; transition: all 0.15s;
}
.sc-opt.multi .sc-opt-dot { border-radius: 4px; }
.sc-opt.selected .sc-opt-dot { border-color: #E89B5C; background: #E89B5C; }
.sc-opt.selected.multi .sc-opt-dot::after {
  content: ''; display: block; width: 5px; height: 9px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(3px, 1px);
}
.sc-textarea {
  width: 100%; margin-top: 12px; padding: 12px;
  border: 2px solid #f0f0f0; border-radius: 8px;
  font-size: 0.88rem; font-family: inherit; resize: vertical; min-height: 72px;
  display: none;
}
.sc-textarea.show { display: block; }
.sc-textarea:focus { outline: none; border-color: #E89B5C; }

/* NAV */
.sc-nav { display: flex; gap: 12px; margin-top: 28px; }
.sc-btn-back {
  padding: 14px 20px; border: 2px solid #f0f0f0; border-radius: 10px;
  background: #fff; font-size: 0.88rem; cursor: pointer; font-family: inherit; color: #888;
}
.sc-btn-next {
  flex: 1; padding: 14px; background: #E89B5C; color: #fff; border: none;
  border-radius: 10px; font-size: 0.95rem; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: background 0.15s, opacity 0.15s;
}
.sc-btn-next:hover:not(:disabled) { background: #d88a4b; }
.sc-btn-next:disabled { opacity: 0.38; cursor: not-allowed; }

/* ===== RESULT ===== */
#sc-result { animation: scFadeIn 0.4s ease; }

.sc-warn-box {
  background: #fff8e0; border: 1px solid #fde68a; border-radius: 8px;
  padding: 14px 16px; font-size: 0.8rem; color: #7c6400; margin-bottom: 24px; line-height: 1.7;
}

/* URGENCY */
.sc-urgency { border-radius: 10px; padding: 16px 20px; margin-bottom: 32px; }
.urg-high   { background: #fff0f0; border: 1px solid #ffb3b3; }
.urg-medium { background: #fff8e0; border: 1px solid #fde68a; }
.urg-low    { background: #f0f9f0; border: 1px solid #c3e6cb; }
.sc-urgency-title { font-size: 0.9rem; font-weight: 900; margin-bottom: 5px; }
.urg-high   .sc-urgency-title { color: #c00; }
.urg-medium .sc-urgency-title { color: #a05800; }
.urg-low    .sc-urgency-title { color: #1a7a1a; }
.sc-urgency-body { font-size: 0.82rem; line-height: 1.6; }
.urg-high   .sc-urgency-body { color: #900; }
.urg-medium .sc-urgency-body { color: #7a4500; }
.urg-low    .sc-urgency-body { color: #155a15; }

/* SECTION */
.sc-sec-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; color: #aaa; margin-bottom: 8px; }
.sc-sec-title { font-size: 1rem; font-weight: 900; margin-bottom: 5px; }
.sc-sec-note  { font-size: 0.78rem; color: #999; margin-bottom: 16px; }

/* TOPICS */
.sc-topics { margin-bottom: 36px; }
.sc-topic-list { display: flex; flex-direction: column; gap: 10px; }
.sc-topic-card {
  display: block; text-decoration: none; color: inherit;
  padding: 16px; border: 1px solid #f0f0f0; border-radius: 10px; background: #fff;
  transition: border-color 0.15s;
}
.sc-topic-card:hover { border-color: #E89B5C; }
.sc-topic-name  { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.sc-topic-desc  { font-size: 0.78rem; color: #888; line-height: 1.5; }
.sc-topic-arrow { font-size: 0.72rem; color: #E89B5C; margin-top: 6px; display: block; }

/* MEMO */
.sc-memo { margin-bottom: 36px; }
.sc-memo-card {
  background: #fdf7f2; border: 1px solid #f0e0d0; border-radius: 12px;
  padding: 20px; margin-bottom: 16px;
}
.sc-memo-sec { margin-bottom: 18px; }
.sc-memo-sec:last-child { margin-bottom: 0; }
.sc-memo-h { font-size: 0.8rem; font-weight: 700; color: #E89B5C; margin-bottom: 8px; }
.sc-memo-ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sc-memo-ul li {
  font-size: 0.85rem; color: #444; padding-left: 14px;
  position: relative; line-height: 1.5;
}
.sc-memo-ul li::before { content: '•'; color: #E89B5C; position: absolute; left: 0; }

.sc-memo-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sc-act-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 18px; border-radius: 8px; font-size: 0.82rem; font-weight: 700;
  cursor: pointer; border: none; font-family: inherit; transition: opacity 0.15s; text-decoration: none;
}
.sc-act-btn:hover { opacity: 0.85; }
.sc-act-print { background: #1a1a1a; color: #fff; }
.sc-act-line  { background: #06C755; color: #fff; }
.sc-act-copy  { background: #f0f0f0; color: #555; }
.sc-act-copy.copied { background: #e0f7e0; color: #155a15; }

/* STEPS */
.sc-steps { margin-bottom: 36px; }
.sc-steps-ol { list-style: none; counter-reset: st; display: flex; flex-direction: column; gap: 10px; }
.sc-steps-ol li {
  counter-increment: st; display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.88rem; line-height: 1.5;
}
.sc-steps-ol li::before {
  content: counter(st); min-width: 24px; height: 24px; background: #E89B5C; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}

/* LINE CTA */
.sc-line-cta {
  background: #f0fff4; border: 1px solid #c3e6cb; border-radius: 10px;
  padding: 20px; margin-bottom: 28px; text-align: center;
}
.sc-line-cta p { font-size: 0.85rem; color: #555; margin-bottom: 12px; line-height: 1.6; }
.sc-line-cta a {
  display: inline-block; padding: 12px 28px; background: #06C755; color: #fff;
  border-radius: 8px; text-decoration: none; font-size: 0.88rem; font-weight: 700;
}
.sc-disc {
  font-size: 0.75rem; color: #aaa; line-height: 1.7;
  padding-top: 20px; border-top: 1px solid #f0f0f0;
}
.sc-retry { text-align: center; margin-top: 24px; }
.sc-retry button {
  font-size: 0.8rem; color: #bbb; background: none; border: none;
  cursor: pointer; font-family: inherit; padding: 8px;
}

/* ===== PRINT ===== */
@media print {
  #sc .sc-progress, #sc-quiz,
  .sc-warn-box, .sc-urgency, .sc-topics,
  .sc-sec-label, .sc-sec-title, .sc-sec-note,
  .sc-memo-actions, .sc-steps, .sc-line-cta,
  .sc-disc, .sc-retry { display: none !important; }
  #sc { max-width: 100%; padding: 0; }
  .sc-memo-card { border: 1px solid #ccc; background: #fff; }
  body::before { content: 'うちのペット ｜ 動物病院での相談メモ'; display: block; font-size: 14pt; font-weight: bold; margin-bottom: 16px; }
}