/* AI導入診断 — 日本語可読性ルール準拠（基準17px・行間1.8〜2.0・字間0.03〜0.06em） */
:root {
  --ink: #2b2b33;
  --ink-soft: #5b5b66;
  --accent: #c8453a;
  --accent-dark: #a3352c;
  --gold: #b8860b;
  --bg: #faf7f2;
  --card: #ffffff;
  --line: #e6ded2;
  --green: #2e7d5b;
}

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

html { font-size: 17px; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.2rem 1.1rem 4rem;
}

/* ---- ヘッダー ---- */
.site-header {
  text-align: center;
  padding: 1.6rem 0 0.6rem;
}
.site-header .brand {
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.12em;
}
.site-header h1 {
  font-size: 1.55rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin: 0.4rem 0 0.2rem;
}
.site-header .sub {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---- カード共通 ---- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 1.3rem;
  margin-top: 1.2rem;
  box-shadow: 0 2px 10px rgba(60, 40, 20, 0.05);
}

/* ---- イントロ ---- */
.intro-points {
  list-style: none;
  margin: 1rem 0 1.4rem;
}
.intro-points li {
  padding-left: 1.7em;
  position: relative;
  margin-bottom: 0.5rem;
}
.intro-points li::before {
  content: "✔";
  position: absolute;
  left: 0.2em;
  color: var(--green);
}
.note-small {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---- ボタン ---- */
.btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 1rem 1.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.6;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.1s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  font-weight: 500;
}
.btn + .btn { margin-top: 0.7rem; }
.btn:disabled { opacity: 0.4; cursor: default; }

/* ---- 進捗 ---- */
.progress {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.progress-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #ece5d8;
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #e07b4f);
  border-radius: 999px;
  transition: width 0.25s ease;
}

/* ---- 設問 ---- */
.q-title {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.q-hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}
.opts { display: grid; gap: 0.6rem; }
.opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  text-align: left;
  background: #fdfcf9;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.12s ease, background 0.12s ease;
}
.opt:hover { border-color: #d8b9a0; }
.opt.selected {
  border-color: var(--accent);
  background: #fdf1ee;
  font-weight: 700;
}
.opt .icon { font-size: 1.2rem; }
.q-nav {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.2rem;
}
.q-nav .btn { margin-top: 0; }
.q-nav .btn-ghost { width: 36%; }

/* ---- 結果 ---- */
.result-rank {
  text-align: center;
  padding-top: 1.8rem;
}
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #e07b4f, var(--accent) 65%);
  color: #fff;
  font-size: 2.6rem;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(200, 69, 58, 0.35);
}
.rank-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-top: 0.8rem;
  line-height: 1.7;
}
.rank-message { margin-top: 0.5rem; text-align: left; }

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.stat {
  background: #fdf6ea;
  border: 1px solid #eadfc8;
  border-radius: 14px;
  padding: 0.9rem 0.6rem;
  text-align: center;
}
.stat .label { font-size: 0.8rem; color: var(--ink-soft); }
.stat .value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-dark);
  line-height: 1.5;
}
.stat .value small { font-size: 0.85rem; font-weight: 600; }
.stat-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.6rem; }

.sec-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.7rem;
  padding-left: 0.7em;
  border-left: 4px solid var(--accent);
  line-height: 1.7;
}

.steps { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.1rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.steps .st-title { font-weight: 700; }
.steps .st-desc { font-size: 0.93rem; color: var(--ink-soft); }

.tool-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.9rem;
  background: #fdfcf9;
}
.tool-card .t-name { font-weight: 800; font-size: 1.05rem; }
.tool-card .t-catch {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent-dark);
  background: #fbeae6;
  border-radius: 999px;
  padding: 0.05rem 0.7rem;
  margin: 0.2rem 0 0.4rem;
}
.tool-card .t-desc { font-size: 0.92rem; color: var(--ink-soft); }
.tools-more {
  font-size: 0.9rem;
  text-align: right;
}
.tools-more a { color: var(--accent-dark); }

/* ---- CTA ---- */
.cta-card {
  background: linear-gradient(150deg, #35322c, #211f1b);
  color: #f5efe4;
  border: none;
}
.cta-card .sec-title {
  border-color: #ffe199;
  color: #ffe199;
}
.cta-card p { font-size: 0.97rem; }
.cta-card .btn-primary { margin-top: 1.1rem; }
.cta-card .btn-line {
  background: #06c755;
  color: #fff;
}
.cta-note { font-size: 0.82rem; color: #cfc6b4; margin-top: 0.7rem; }

/* ---- 前回結果バナー ---- */
.prev-banner {
  margin-top: 1.2rem;
  background: #f2ecdf;
  border: 1px dashed #cdbfa4;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.prev-banner button {
  background: none;
  border: none;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.04em;
}

.footer {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.hidden { display: none !important; }

/* ---- PC ---- */
@media (min-width: 900px) {
  html { font-size: 18px; }
  .wrap { max-width: 720px; }
  .site-header h1 { font-size: 1.9rem; }
  .opts.cols2 { grid-template-columns: 1fr 1fr; }
}
