/* ===========================
   さ助のnote診断 — style.css
   =========================== */

/* --- リセット & ベース --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --note-green:   #41C9B4;
  --note-green-d: #2daa96;
  --accent:       #FF6B6B;
  --gold:         #F5A623;
  --bg:           #F7F8FA;
  --surface:      #FFFFFF;
  --border:       #E8EAF0;
  --text-main:    #1A1A2E;
  --text-sub:     #6B7280;
  --text-hint:    #9CA3AF;
  --radius-lg:    20px;
  --radius-md:    12px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.06);
  --shadow-md:    0 6px 24px rgba(0,0,0,.10);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.13);
  --font:         'Noto Sans JP', sans-serif;
  --transition:   .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 15px;
}

.hidden { display: none !important; }
.sp-hide { display: none; }
@media (min-width: 640px) { .sp-hide { display: inline; } }

/* ===========================
   HEADER
   =========================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 900px; margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 17px; color: var(--text-main); text-decoration: none;
}
.logo-icon { font-size: 22px; }
.logo-text strong { color: var(--note-green); }

.header-nav {
  display: flex; align-items: center; gap: 20px;
}
.header-nav a {
  color: var(--text-sub); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color var(--transition);
}
.header-nav a:hover { color: var(--note-green); }

.btn-premium {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px !important;
  color: var(--text-sub) !important;
  transition: border-color var(--transition), color var(--transition) !important;
}
.btn-premium:hover {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}
.badge-soon {
  background: var(--gold); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
  letter-spacing: .04em;
}

/* ===========================
   HERO
   =========================== */
.hero {
  padding: 72px 20px 80px;
  text-align: center;
  background: linear-gradient(160deg, #f0fdfb 0%, #f7f8fa 60%);
}
.hero-inner { max-width: 680px; margin: 0 auto; }

.hero-eyebrow {
  display: inline-block;
  background: rgba(65,201,180,.12);
  color: var(--note-green-d);
  font-size: 13px; font-weight: 700;
  padding: 5px 16px; border-radius: 999px;
  margin-bottom: 20px; letter-spacing: .05em;
}
.hero-title {
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 900;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 16px;
}
.hero-desc {
  color: var(--text-sub); font-size: 15px;
  margin-bottom: 40px; line-height: 1.8;
}

/* --- 入力カード --- */
.input-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 20px;
  box-shadow: var(--shadow-md);
  text-align: left;
}
.input-label {
  display: block;
  font-size: 13px; font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 10px;
  letter-spacing: .04em;
}
.input-row {
  display: flex; gap: 10px;
}
.url-input {
  flex: 1;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px; font-family: var(--font);
  color: var(--text-main);
  background: #FAFBFC;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.url-input:focus {
  border-color: var(--note-green);
  box-shadow: 0 0 0 3px rgba(65,201,180,.15);
  background: var(--surface);
}
.url-input::placeholder { color: var(--text-hint); }
.btn-diagnose {
  height: 52px; padding: 0 28px;
  background: var(--note-green);
  color: #fff; border: none;
  border-radius: var(--radius-md);
  font-size: 15px; font-weight: 700;
  font-family: var(--font);
  cursor: pointer; white-space: nowrap;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(65,201,180,.35);
}
.btn-diagnose:hover {
  background: var(--note-green-d);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(65,201,180,.45);
}
.btn-diagnose:active { transform: translateY(0); }
.input-hint {
  margin-top: 10px;
  font-size: 12px; color: var(--text-hint);
}

/* エラー */
.url-input.error { border-color: var(--accent); }
.input-error {
  color: var(--accent); font-size: 12px;
  margin-top: 8px; display: none;
}
.input-error.show { display: block; }

/* ===========================
   LOADING
   =========================== */
.loading-section {
  padding: 80px 20px;
  text-align: center;
}
.loading-inner { max-width: 480px; margin: 0 auto; }

.loading-spinner {
  width: 56px; height: 56px;
  border: 4px solid var(--border);
  border-top-color: var(--note-green);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
  font-size: 16px; font-weight: 700;
  color: var(--text-main); margin-bottom: 28px;
}
.loading-steps {
  display: flex; flex-direction: column; gap: 10px;
  text-align: left;
}
.step-item {
  font-size: 14px; color: var(--text-hint);
  padding: 10px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.step-item.active {
  color: var(--note-green-d);
  border-color: var(--note-green);
  background: rgba(65,201,180,.06);
  font-weight: 700;
}
.step-item.done {
  color: var(--text-sub);
  border-color: var(--border);
  background: var(--surface);
}

/* ===========================
   RESULT
   =========================== */
.result-section { padding: 60px 20px 80px; }
.result-inner { max-width: 720px; margin: 0 auto; }

/* アカウントカード */
.account-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.account-avatar {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--note-green), #5bb8e6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
  overflow: hidden;
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-name { font-size: 18px; font-weight: 700; }
.account-url { font-size: 13px; color: var(--note-green-d); }

/* 総合スコアカード */
.total-score-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 24px 32px;
  text-align: center;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
}
.score-label {
  font-size: 13px; font-weight: 700;
  color: var(--text-sub); letter-spacing: .08em;
  margin-bottom: 20px;
}
.score-circle-wrap {
  position: relative; width: 160px; height: 160px;
  margin: 0 auto 20px;
}
.score-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--border); stroke-width: 10; }
.ring-fill {
  fill: none;
  stroke: var(--note-green);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.4s cubic-bezier(.4,0,.2,1),
              stroke .4s ease;
}
.score-number-wrap {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.score-number {
  display: block;
  font-size: 46px; font-weight: 900;
  color: var(--text-main); line-height: 1;
}
.score-max { font-size: 14px; color: var(--text-hint); }
.score-rank {
  font-size: 22px; font-weight: 700;
  letter-spacing: .04em;
}

/* カテゴリグリッド */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
@media (min-width: 560px) {
  .category-grid { grid-template-columns: 1fr 1fr; }
}
.category-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cat-icon { font-size: 24px; flex-shrink: 0; }
.cat-info { flex: 1; min-width: 0; }
.cat-name { font-size: 13px; font-weight: 700; color: var(--text-sub); margin-bottom: 6px; }
.cat-bar-wrap {
  height: 6px; background: var(--border); border-radius: 999px; overflow: hidden;
}
.cat-bar {
  height: 100%; width: 0%;
  background: var(--note-green);
  border-radius: 999px;
  transition: width 1s cubic-bezier(.4,0,.2,1) .2s;
}
.cat-score {
  font-size: 18px; font-weight: 900;
  color: var(--text-main); flex-shrink: 0;
  min-width: 36px; text-align: right;
}

/* アドバイスカード */
.advice-card {
  background: linear-gradient(135deg, #fffbf0 0%, #fff9e6 100%);
  border: 1.5px solid #F5E6C0;
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  margin-bottom: 28px;
}
.advice-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.advice-icon { font-size: 22px; }
.advice-title { font-size: 16px; font-weight: 700; }
.advice-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 12px;
}
.advice-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.7; color: var(--text-main);
}
.advice-list li::before {
  content: '▶';
  color: var(--gold);
  font-size: 11px;
  margin-top: 4px;
  flex-shrink: 0;
}

/* ===========================
   レポート サンプル展示
   =========================== */
.sample-preview {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 24px 20px 20px;
  margin: 24px 0;
  text-align: left;
}
.sample-label {
  font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,.5);
  letter-spacing: .08em;
  margin-bottom: 16px;
  text-align: center;
}
.sample-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
@media (min-width: 560px) {
  .sample-grid { grid-template-columns: 1fr 1fr; }
}
.sample-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: background var(--transition), border-color var(--transition);
}
.sample-card:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(65,201,180,.4);
}
.sample-card-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.sample-icon { font-size: 18px; flex-shrink: 0; }
.sample-card-title {
  font-size: 13px; font-weight: 700;
  color: #fff; line-height: 1.4;
}
.sample-card-desc {
  font-size: 12px; color: rgba(255,255,255,.6);
  line-height: 1.7; margin-bottom: 10px;
}
.sample-items {
  list-style: none;
  display: flex; flex-direction: column; gap: 5px;
}
.sample-items li {
  font-size: 12px; color: rgba(255,255,255,.5);
  padding-left: 14px; position: relative; line-height: 1.5;
}
.sample-items li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--note-green); font-size: 11px; font-weight: 700;
}
.sample-note {
  font-size: 11px; color: rgba(255,255,255,.35);
  text-align: center; line-height: 1.6;
}

/* レポートCTA */
.report-cta {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  margin-bottom: 28px;
  position: relative; overflow: hidden;
}
.report-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(65,201,180,.15), transparent 60%);
  pointer-events: none;
}
.coming-soon-badge {
  display: inline-block;
  background: var(--gold);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.report-title {
  font-size: 22px; font-weight: 900;
  color: #fff; margin-bottom: 12px;
}
.report-desc {
  font-size: 14px; color: rgba(255,255,255,.7);
  line-height: 1.8; margin-bottom: 24px;
}
.report-price {
  margin-bottom: 24px;
}
.price-num {
  font-size: 38px; font-weight: 900; color: var(--gold);
}
.price-unit {
  font-size: 14px; color: rgba(255,255,255,.6);
  margin-left: 4px;
}
.btn-report {
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.5);
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 14px; font-weight: 700; font-family: var(--font);
  cursor: not-allowed;
  letter-spacing: .04em;
}

/* 有料レポート申し込みボタン */
.report-apply-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.btn-report-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: #1A1A2E;
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: .04em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.btn-report-apply:hover {
  background: #f0fffe;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
}
.btn-report-apply:active {
  transform: translateY(0);
}
.report-apply-note {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  text-align: center;
}

/* トップに戻る */
.back-top-wrap { margin-bottom: 20px; }
.btn-back-top {
  background: none; border: none;
  color: var(--text-sub); font-size: 14px; font-weight: 700;
  font-family: var(--font); cursor: pointer;
  padding: 8px 4px;
  display: inline-flex; align-items: center; gap: 4px;
  transition: color var(--transition);
}
.btn-back-top:hover { color: var(--note-green); }

/* 再診断 */
.retry-wrap { text-align: center; }
.btn-retry {
  background: none; border: 1.5px solid var(--border);
  color: var(--text-sub); padding: 12px 28px;
  border-radius: 999px; font-size: 14px; font-weight: 700;
  font-family: var(--font); cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.btn-retry:hover { border-color: var(--note-green); color: var(--note-green); }

/* ===========================
   HOW IT WORKS
   =========================== */
.how-section {
  padding: 72px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.how-inner { max-width: 820px; margin: 0 auto; }
.section-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900; text-align: center;
  margin-bottom: 40px;
}
.how-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.how-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.how-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.how-num {
  font-size: 11px; font-weight: 900;
  color: var(--note-green); letter-spacing: .15em;
  margin-bottom: 10px;
}
.how-icon { font-size: 36px; margin-bottom: 12px; }
.how-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.how-card p { font-size: 13px; color: var(--text-sub); line-height: 1.7; }

/* ===========================
   CRITERIA
   =========================== */
.criteria-section {
  padding: 72px 20px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.criteria-inner { max-width: 680px; margin: 0 auto; }
.criteria-list { display: flex; flex-direction: column; gap: 16px; }
.criteria-item {
  display: flex; align-items: flex-start; gap: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.criteria-icon { display: none; }
.criteria-item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.criteria-item p { font-size: 13px; color: var(--text-sub); line-height: 1.6; }

/* ===========================
   BOTTOM LINE CTA（トップページ下部）
   =========================== */
.bottom-line-cta {
  background: linear-gradient(160deg, #1A1A2E 0%, #2d2d4e 100%);
  padding: 72px 20px;
  text-align: center;
}
.bottom-line-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.bottom-line-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--note-green);
  text-transform: uppercase;
}
.bottom-line-title {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  margin: 0;
}
.bottom-line-desc {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  line-height: 1.8;
  margin: 0;
}
.btn-line-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #06C755;
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-md);
  padding: 16px 44px;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font);
  letter-spacing: .04em;
  box-shadow: 0 4px 20px rgba(6,199,85,.4);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  margin-top: 4px;
}
.btn-line-apply:hover {
  background: #05b34c;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(6,199,85,.45);
}
.btn-line-apply:active {
  transform: translateY(0);
}
.bottom-line-note {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  line-height: 1.6;
  margin: 0;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--text-main);
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 28px 20px;
  font-size: 13px; line-height: 2;
}
.footer-note { font-size: 11px; }

/* ===========================
   質問フォーム（Quiz）
   =========================== */
.quiz-section { padding: 48px 20px 80px; }
.quiz-inner { max-width: 640px; margin: 0 auto; }

.quiz-header { margin-bottom: 32px; }
.quiz-url-label {
  font-size: 12px; color: var(--note-green-d);
  font-weight: 700; margin-bottom: 10px;
  word-break: break-all;
}
.quiz-title {
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 900; margin-bottom: 8px;
}
.quiz-desc {
  font-size: 14px; color: var(--text-sub);
  line-height: 1.7; margin-bottom: 20px;
}

/* 進捗バー */
.quiz-progress-wrap {
  height: 6px; background: var(--border);
  border-radius: 999px; overflow: hidden;
  margin-bottom: 6px;
}
.quiz-progress-bar {
  height: 100%; width: 0%;
  background: var(--note-green);
  border-radius: 999px;
  transition: width .4s ease;
}
.quiz-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.quiz-back-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 13px;
  color: var(--text-sub);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  font-family: var(--font);
  visibility: hidden; /* JS で制御 */
}
.quiz-back-btn:hover {
  background: var(--bg);
  border-color: var(--note-green);
  color: var(--note-green-d);
}
.quiz-progress-label {
  font-size: 12px; color: var(--text-hint);
  text-align: right;
}

/* 質問ステップ */
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fadeSlideIn .3s ease; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.quiz-category-tag {
  display: inline-block;
  background: rgba(65,201,180,.12);
  color: var(--note-green-d);
  font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
  margin-bottom: 14px; letter-spacing: .04em;
}
.quiz-q {
  font-size: 18px; font-weight: 700;
  line-height: 1.5; margin-bottom: 10px;
  color: var(--text-main);
}
.quiz-why {
  font-size: 13px; color: var(--text-sub);
  background: #f9fafb;
  border-left: 3px solid var(--note-green);
  padding: 10px 14px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  line-height: 1.7; margin-bottom: 20px;
}
.quiz-options {
  display: flex; flex-direction: column; gap: 10px;
}
.quiz-btn {
  width: 100%; padding: 14px 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500;
  font-family: var(--font);
  color: var(--text-main);
  text-align: left; cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  line-height: 1.5;
}
.quiz-btn:hover {
  border-color: var(--note-green);
  background: rgba(65,201,180,.06);
  color: var(--note-green-d);
}
.quiz-btn.selected {
  border-color: var(--note-green);
  background: rgba(65,201,180,.12);
  color: var(--note-green-d);
  font-weight: 700;
}

/* ===========================
   得点理由カード
   =========================== */
.reason-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.reason-title {
  font-size: 16px; font-weight: 700;
  margin-bottom: 20px; color: var(--text-main);
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--border);
}
.reason-list { display: flex; flex-direction: column; gap: 18px; }

.reason-item-head {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px;
  margin-bottom: 8px;
}
.reason-item-text {
  font-size: 13px; line-height: 1.7;
  color: var(--text-main); flex: 1;
}
.reason-item-score {
  font-size: 18px; font-weight: 900;
  color: var(--note-green); flex-shrink: 0;
  white-space: nowrap;
}
.reason-item-score small {
  font-size: 11px; color: var(--text-hint); font-weight: 400;
}
.reason-bar-wrap {
  height: 5px; background: var(--border);
  border-radius: 999px; overflow: hidden;
}
.reason-bar {
  height: 100%; background: var(--note-green);
  border-radius: 999px;
  transition: width .9s cubic-bezier(.4,0,.2,1) .3s;
}

/* ===========================
   スコアランク別カラー
   =========================== */
.rank-s  .ring-fill { stroke: #F5A623; }
.rank-s  .score-rank { color: #F5A623; }
.rank-a  .ring-fill { stroke: var(--note-green); }
.rank-a  .score-rank { color: var(--note-green); }
.rank-b  .ring-fill { stroke: #5bb8e6; }
.rank-b  .score-rank { color: #5bb8e6; }
.rank-c  .ring-fill { stroke: #9CA3AF; }
.rank-c  .score-rank { color: #9CA3AF; }
.rank-d  .ring-fill { stroke: var(--accent); }
.rank-d  .score-rank { color: var(--accent); }

/* ===========================
   モバイル調整
   =========================== */
@media (max-width: 480px) {
  .input-row { flex-direction: column; }
  .btn-diagnose { width: 100%; }
  .account-card { flex-wrap: wrap; }
  .report-cta { padding: 32px 20px; }
  .advice-card { padding: 22px 18px; }
  .header-nav a:not(.btn-premium) { display: none; }
}
