/* ============================================
   親が倒れる前の介護準備 簡易診断 スタイル
   ============================================ */
:root {
  --color-main: #2c8c78;        /* やさしい緑 */
  --color-main-dark: #1f6b5b;
  --color-accent: #e8873c;      /* あたたかいオレンジ */
  --color-bg: #f6f4ef;
  --color-text: #333;
  --color-sub: #777;
  --color-card: #fff;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .08);
}

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

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* ---------- ヘッダー ---------- */
.site-header {
  background: var(--color-main);
  color: #fff;
  padding: 14px 16px;
}
.header-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.header-icon { font-size: 1.3rem; }
.header-title { font-size: .95rem; letter-spacing: .04em; }

/* ---------- 画面切り替え ---------- */
.screen { display: none; padding: 24px 16px 40px; }
.screen.active { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
}

/* ---------- スタート画面 ---------- */
.intro-card { text-align: center; }
.intro-badge {
  display: inline-block;
  background: #eef7f4;
  color: var(--color-main-dark);
  font-weight: 700;
  font-size: .85rem;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.intro-title {
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.45;
  margin-bottom: 16px;
}
.accent { color: var(--color-accent); }
.intro-lead { font-size: 1rem; margin-bottom: 18px; }
.intro-note {
  background: #fdf6ee;
  border-left: 4px solid var(--color-accent);
  border-radius: 8px;
  text-align: left;
  font-size: .9rem;
  padding: 14px 16px;
  margin-bottom: 22px;
}
.intro-note p + p { margin-top: 6px; }

.intro-howto { text-align: left; margin-bottom: 26px; }
.howto-title {
  font-size: .95rem;
  color: var(--color-main-dark);
  margin-bottom: 10px;
}
.howto-list { list-style: none; font-size: .9rem; }
.howto-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.dot {
  flex-shrink: 0;
  display: inline-block;
  width: 58px;
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  border-radius: 999px;
  padding: 2px 0;
}
.dot-2 { background: var(--color-main); }
.dot-1 { background: #d9a441; }
.dot-0 { background: #b0b0b0; }

.intro-caption { font-size: .8rem; color: var(--color-sub); margin-top: 12px; }

/* ---------- ボタン共通 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  font-size: 1.1rem;
  padding: 16px 42px;
  box-shadow: 0 4px 14px rgba(232, 135, 60, .4);
}
.btn-primary:hover { opacity: .9; }
.btn-large { width: 100%; max-width: 360px; }
.btn-ghost {
  background: transparent;
  color: var(--color-sub);
  font-size: .85rem;
  padding: 10px 18px;
  margin-top: 18px;
}
.btn-ghost:hover { color: var(--color-main-dark); }

/* ---------- 質問画面 ---------- */
.progress-area { margin-bottom: 22px; }
.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  font-weight: 700;
  color: var(--color-main-dark);
  margin-bottom: 8px;
}
.category-badge {
  background: #eef7f4;
  color: var(--color-main-dark);
  font-size: .75rem;
  padding: 3px 12px;
  border-radius: 999px;
}
.progress-bar {
  height: 10px;
  background: #e8e5de;
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-main), #58b89f);
  border-radius: 999px;
  transition: width .3s ease;
}

.question-text {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.6;
  min-height: 3.2em;
  margin-bottom: 24px;
}

.answer-buttons { display: flex; flex-direction: column; gap: 12px; }
.answer-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 14px;
  padding: 15px 18px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.answer-btn:hover { transform: translateY(-2px); }
.answer-btn:active { transform: scale(.98); }
.answer-2:hover { border-color: var(--color-main); background: #eef7f4; }
.answer-1:hover { border-color: #d9a441; background: #fdf8ec; }
.answer-0:hover { border-color: #999; background: #f4f4f4; }
.answer-mark { font-size: 1.3rem; }
.answer-2 .answer-mark { color: var(--color-main); }
.answer-1 .answer-mark { color: #d9a441; }
.answer-0 .answer-mark { color: #aaa; }
.answer-label { flex: 1; text-align: left; }
.answer-point {
  font-size: .8rem;
  color: var(--color-sub);
  background: #f2f0ea;
  border-radius: 999px;
  padding: 2px 10px;
}

/* ---------- 結果画面 ---------- */
.result-card { text-align: center; }
.result-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-main-dark);
  margin-bottom: 18px;
}
.score-circle {
  width: 170px;
  height: 170px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(closest-side, #fff 82%, transparent 83% 100%),
    conic-gradient(var(--color-main) calc(var(--pct, 0) * 1%), #e8e5de 0);
}
.score-value {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-main-dark);
  line-height: 1.1;
}
.score-max { font-size: .9rem; color: var(--color-sub); }

.result-title {
  font-size: 1.45rem;
  font-weight: 900;
  margin-bottom: 12px;
}
.result-title.rank-a { color: var(--color-main-dark); }
.result-title.rank-b { color: #c98a1f; }
.result-title.rank-c { color: #d35f2d; }
.result-message {
  font-size: .95rem;
  text-align: left;
  background: #faf9f5;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 26px;
}

/* 分野別バー */
.category-summary { text-align: left; margin-bottom: 30px; }
.summary-title {
  font-size: .95rem;
  color: var(--color-main-dark);
  margin-bottom: 12px;
}
.category-bars { list-style: none; }
.category-bars li { margin-bottom: 12px; }
.cat-label {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.cat-score { color: var(--color-sub); font-weight: 500; }
.cat-bar {
  height: 8px;
  background: #eceae4;
  border-radius: 999px;
  overflow: hidden;
}
.cat-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-main), #58b89f);
  transition: width .6s ease;
}
.cat-fill.low { background: linear-gradient(90deg, #e08a4e, #eda76f); }

/* CTA(無料相談誘導) */
.cta-box {
  background: linear-gradient(160deg, #fdf3e7, #fbe8d2);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 28px 22px;
  margin-bottom: 8px;
}
.cta-catch {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.cta-title {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 12px;
}
.cta-text { font-size: .9rem; margin-bottom: 18px; }
.qr-area { margin: 0 auto 12px; }
.qr-img {
  width: 180px;
  height: auto;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
}
.qr-caption { font-size: .9rem; margin-top: 10px; }
.cta-note { font-size: .75rem; color: var(--color-sub); }

/* ---------- フッター ---------- */
.site-footer {
  text-align: center;
  font-size: .75rem;
  color: var(--color-sub);
  padding: 18px 10px 26px;
}

/* ---------- レスポンシブ ---------- */
.pc-only { display: inline; }
@media (max-width: 560px) {
  .pc-only { display: none; }
  .card { padding: 26px 18px; }
  .intro-title { font-size: 1.45rem; }
  .question-text { font-size: 1.05rem; }
  .cta-title { font-size: 1.1rem; }
}
