/* おまとめローンHP モック — 案Aカラー */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F7F9FC;
  --main: #1B3A5F;
  --accent: #2F6FED;
  --pass: #1F7A4C;
  --reject: #B42318;
  --note: #5C6B7A;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --card-shadow: 0 1px 3px rgba(27, 58, 95, 0.08);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  background: #E8ECF1;
  color: var(--main);
  line-height: 1.6;
  min-height: 100vh;
}

.wrap {
  max-width: 430px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === NAV === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--main);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-size: 11px;
  color: var(--note);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: #EEF3FC;
}

/* === HERO === */
.hero {
  padding: 28px 20px 24px;
  background: var(--white);
  text-align: center;
}
.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: #EEF3FC;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}
.hero-sub {
  font-size: 13px;
  color: var(--note);
  margin-bottom: 20px;
}
.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-secondary {
  background: var(--white);
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-full { width: 100%; }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* === ATTENTION STRIP === */
.attn-strip {
  background: #FFF8E6;
  border-top: 1px solid #F5E6C0;
  border-bottom: 1px solid #F5E6C0;
  padding: 10px 16px;
  font-size: 12px;
  color: #8B6914;
  text-align: center;
  line-height: 1.5;
}

/* === TRUST BAR === */
.trust-bar {
  display: flex;
  justify-content: space-around;
  padding: 16px 12px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.trust-item {
  text-align: center;
  flex: 1;
}
.trust-item .num {
  font-size: 18px;
  font-weight: 700;
  color: var(--main);
  display: block;
}
.trust-item .label {
  font-size: 10px;
  color: var(--note);
  margin-top: 2px;
}

/* === AGGREGATE BAR === */
.agg-bar {
  padding: 14px 16px;
  background: var(--main);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.agg-bar .agg-label { font-size: 12px; opacity: 0.85; }
.agg-bar .agg-value { font-size: 15px; font-weight: 700; }
.agg-stats { display: flex; gap: 16px; }
.agg-stat { text-align: center; }
.agg-stat .v { font-size: 16px; font-weight: 700; display: block; }
.agg-stat .l { font-size: 10px; opacity: 0.8; }

/* === SECTION === */
.section {
  padding: 20px 16px;
}
.section-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title a {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

/* === POST CARDS === */
.post-list { display: flex; flex-direction: column; gap: 10px; }
.post-card {
  background: var(--white);
  border-radius: 10px;
  padding: 14px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: block;
}
.post-card-row1 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.badge-pass { background: #E6F5EE; color: var(--pass); }
.badge-reject { background: #FDECEA; color: var(--reject); }
.badge-partial { background: #EEF3FC; color: var(--accent); }
.ratio { color: var(--main); font-weight: 600; }
.date { color: var(--note); margin-left: auto; }
.post-card-body {
  font-size: 13px;
  color: var(--note);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-meta {
  margin-top: 8px;
  font-size: 11px;
  color: var(--note);
  display: flex;
  gap: 10px;
}

/* === DIAG CTA === */
.diag-cta {
  background: linear-gradient(135deg, #EEF3FC 0%, #E8F0FE 100%);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  border: 1px solid #D0DFF8;
}
.diag-cta h2 {
  font-size: 16px;
  margin-bottom: 6px;
}
.diag-cta p {
  font-size: 12px;
  color: var(--note);
  margin-bottom: 14px;
}

/* === PRESETS === */
.preset-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.preset-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--main);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--card-shadow);
}
.preset-btn .icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.preset-btn .icon-reject { background: #FDECEA; color: var(--reject); }
.preset-btn .icon-many { background: #EEF3FC; color: var(--accent); }
.preset-btn .icon-consult { background: #FFF8E6; color: #8B6914; }
.preset-btn .arrow { margin-left: auto; color: var(--note); font-size: 16px; }

/* === COMPARE ENTRY === */
.compare-box {
  background: var(--white);
  border-radius: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}
.compare-box h3 {
  font-size: 14px;
  margin-bottom: 6px;
}
.compare-box p {
  font-size: 12px;
  color: var(--note);
  margin-bottom: 12px;
}
.compare-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.tag {
  font-size: 11px;
  padding: 3px 10px;
  background: #EEF3FC;
  color: var(--accent);
  border-radius: 12px;
}

/* === POST CTA === */
.post-cta {
  background: var(--white);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  border: 1px dashed var(--border);
}
.post-cta h3 { font-size: 15px; margin-bottom: 6px; }
.post-cta p { font-size: 12px; color: var(--note); margin-bottom: 14px; }

/* === NOTICE === */
.notice {
  padding: 16px;
  font-size: 11px;
  color: var(--note);
  line-height: 1.7;
  background: var(--bg);
}
.notice strong { color: var(--main); }

/* === FOOTER === */
.footer {
  margin-top: auto;
  background: var(--main);
  color: rgba(255,255,255,0.75);
  padding: 24px 16px 32px;
  font-size: 11px;
  line-height: 1.7;
}
.footer-logo {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.footer a { color: rgba(255,255,255,0.85); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 12px 0;
  list-style: none;
}
.footer-links a { text-decoration: none; font-size: 11px; }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 12px;
  margin-top: 8px;
  font-size: 10px;
  opacity: 0.8;
}

/* === RESULT PAGES === */
.result-header {
  padding: 24px 16px 20px;
  background: var(--white);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.result-header .result-label {
  font-size: 12px;
  color: var(--note);
  margin-bottom: 8px;
}
.result-score {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
}
.result-score.pass { color: var(--pass); }
.result-score.caution { color: #C47A0A; }
.result-score.reject { color: var(--reject); }
.result-verdict {
  font-size: 15px;
  font-weight: 700;
  margin-top: 6px;
}
.result-verdict.pass { color: var(--pass); }
.result-verdict.caution { color: #C47A0A; }
.result-verdict.reject { color: var(--reject); }
.result-desc {
  font-size: 13px;
  color: var(--note);
  margin-top: 10px;
  line-height: 1.5;
}

.factor-list { display: flex; flex-direction: column; gap: 8px; }
.factor-item {
  background: var(--white);
  border-radius: 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.factor-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.factor-icon.ok { background: #E6F5EE; color: var(--pass); }
.factor-icon.ng { background: #FDECEA; color: var(--reject); }
.factor-icon.warn { background: #FFF8E6; color: #C47A0A; }
.factor-text { flex: 1; }
.factor-text .ftitle { font-size: 13px; font-weight: 600; }
.factor-text .fdesc { font-size: 11px; color: var(--note); margin-top: 2px; }

.advice-box {
  background: var(--white);
  border-radius: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  margin-top: 4px;
}
.advice-box h3 { font-size: 14px; margin-bottom: 8px; }
.advice-box ul {
  padding-left: 18px;
  font-size: 13px;
  color: var(--note);
  line-height: 1.8;
}

/* === LIST PAGE === */
.filter-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.filter-chip {
  flex-shrink: 0;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--note);
  text-decoration: none;
  font-weight: 500;
}
.filter-chip.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.list-count {
  padding: 10px 16px 0;
  font-size: 12px;
  color: var(--note);
}

.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px;
}
.pager a, .pager span {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  color: var(--main);
  border: 1px solid var(--border);
  background: var(--white);
}
.pager .current {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* utility */
.mt-0 { margin-top: 0; }
.mb-12 { margin-bottom: 12px; }
.text-center { text-align: center; }

/* === CITATION CARDS (掲示板・SNSの声・出典あり) === */
.cite-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cite-card {
  background: var(--white);
  border-radius: 10px;
  padding: 14px 14px 12px;
  box-shadow: var(--card-shadow);
  border: 1px solid #D0DFF8;
  border-left: 4px solid var(--accent);
  background: linear-gradient(90deg, #F5F8FE 0%, var(--white) 12px);
}
.cite-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.badge-cite {
  background: #EEF3FC;
  color: var(--accent);
  white-space: normal;
  line-height: 1.3;
}
.cite-summary {
  font-size: 13px;
  color: var(--main);
  line-height: 1.55;
  margin-bottom: 8px;
}
.cite-quote {
  margin: 0 0 10px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--note);
  background: #EEF3FC;
  border-radius: 6px;
  border-left: 3px solid #A8C4F5;
  line-height: 1.5;
  font-style: normal;
}
.cite-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 12px;
}
.cite-source {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.cite-source:hover { text-decoration: underline; }
.cite-fetched {
  color: var(--note);
  font-size: 11px;
}
.cite-excluded {
  margin-top: 8px;
  font-size: 10px;
  color: var(--note);
  opacity: 0.85;
}

/* === NAV (more links) === */
.nav-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 72%;
}
.nav-links a {
  font-size: 10px;
  padding: 4px 6px;
}

/* === SECTION SUB === */
.section-sub {
  font-size: 12px;
  color: var(--note);
  line-height: 1.55;
  margin: -4px 0 12px;
}

/* === BACK LINK === */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 12px;
}
.back-link:hover { text-decoration: underline; }

/* === DETAIL / MINIMAL PAGES === */
.detail-block {
  background: var(--white);
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #D0DFF8;
  border-left: 4px solid var(--accent);
  box-shadow: var(--card-shadow);
}
.detail-block .cite-summary { margin-bottom: 12px; }
.detail-block .cite-quote { margin-bottom: 14px; }
.legal-note {
  margin-top: 16px;
  padding: 12px 14px;
  background: #FFF8E6;
  border: 1px solid #F5E6C0;
  border-radius: 8px;
  font-size: 11px;
  color: #8B6914;
  line-height: 1.6;
}
.mini-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  box-shadow: var(--card-shadow);
  margin-bottom: 10px;
}
.mini-card h3 {
  font-size: 14px;
  margin-bottom: 6px;
}
.mini-card p {
  font-size: 12px;
  color: var(--note);
  line-height: 1.55;
}
.cite-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.cite-teaser-cta {
  margin-top: 12px;
}

/* 結果A：ジャンル枠候補 */
.genre-global-note {
  font-size: 12px;
  color: var(--note);
  line-height: 1.65;
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #F5F7FA;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.genre-block {
  margin-bottom: 16px;
}
.genre-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.genre-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.genre-frame-note {
  font-size: 11px;
  color: #8B6914;
  background: #FFF8E6;
  border: 1px solid #F5E6C0;
  border-radius: 6px;
  padding: 8px 10px;
  margin: 0 0 8px;
  line-height: 1.5;
}
.cand-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-shadow: var(--card-shadow);
}
.cand-card:active { opacity: 0.92; }
.cand-row1 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 4px;
}
.cand-name {
  font-size: 14px;
  font-weight: 600;
}
.cand-rate {
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
}
.cand-meta {
  font-size: 12px;
  color: var(--note);
}
.genre-foot-note {
  font-size: 11px;
  color: var(--note);
  margin-top: 4px;
}
.genre-frame-note.soft {
  color: var(--note);
  background: #F5F7FA;
  border-color: var(--border);
}


/* === readability v2 / UGC-first home === */
body { font-size: 16px; line-height: 1.7; }
h1, h2, h3, .section-title { line-height: 1.45; }
.hero { padding: 36px 24px 32px; }
.hero h1 { font-size: 22px; line-height: 1.45; margin-bottom: 12px; }
.hero-sub { font-size: 14px; line-height: 1.7; margin-bottom: 24px; }
.cta-row { display: flex; flex-direction: column; gap: 14px; }
.btn-primary { min-height: 56px; padding: 16px 18px; }
.hero .btn-primary { width: 100%; }
.hero-secondary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: none; }
.hero-secondary-link:hover, .hero-secondary-link:focus-visible { text-decoration: underline; }
.attn-strip { padding: 12px 24px; font-size: 12px; }
.trust-bar { gap: 8px; padding: 16px; background: #F4F7FB; }
.trust-item { min-width: 0; padding: 10px 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--white); }
.trust-item .num { font-size: 13px; line-height: 1.45; }
.trust-item .label { font-size: 10px; line-height: 1.45; }
.agg-bar { padding: 16px 24px; background: #EAF0F7; color: var(--main); border-top: 1px solid #D8E2EF; border-bottom: 1px solid #D8E2EF; }
.agg-bar .agg-label { color: var(--main); font-size: 12px; opacity: .9; }
.agg-note { margin-top: 2px; color: var(--note); font-size: 10px; }
.agg-stats { gap: 12px; }
.agg-stat .v { font-size: 12px; line-height: 1.45; }
.agg-stat .l { color: var(--note); font-size: 10px; }
.section { padding: 40px 24px; }
.section-title { font-size: 18px; margin-bottom: 16px; }
.section-title a { font-size: 12px; }
.section-sub { font-size: 13px; line-height: 1.7; margin: -4px 0 18px; }
.report-presets { margin-bottom: 20px; }
.preset-grid { gap: 12px; }
.preset-btn { padding: 14px 16px; font-size: 13px; line-height: 1.5; }
.post-list { gap: 20px; }
.post-card { padding: 24px; border-radius: 12px; }
.post-card-row1 { margin-bottom: 10px; }
.post-card-body { font-size: 14px; line-height: 1.7; }
.post-card-meta { margin-top: 12px; font-size: 12px; }
.section-external .cite-list { gap: 20px; }
.cite-card { padding: 20px 18px 16px; }
.cite-summary { line-height: 1.7; }
.section-quiet { padding-top: 24px; padding-bottom: 24px; background: #F4F7FB; }
.compare-box { padding: 20px; }
.compare-box p { line-height: 1.7; }
.btn-secondary { min-height: 44px; padding: 11px 16px; font-weight: 600; }
.section-post-cta { padding-top: 40px; padding-bottom: 24px; }
.post-cta { padding: 28px 24px 24px; border: 1px solid #C9D8EA; background: #F8FBFF; }
.post-cta h3 { font-size: 18px; line-height: 1.45; }
.post-cta p { font-size: 13px; line-height: 1.7; margin-bottom: 18px; }
.post-cta small { display: block; margin-top: 10px; color: var(--note); font-size: 11px; line-height: 1.5; }
.section-diagnosis { padding-top: 12px; padding-bottom: 20px; text-align: center; }
.diag-inline { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; line-height: 1.45; }
.diag-inline a { color: var(--accent); font-weight: 600; text-decoration: none; }
.diag-inline a:hover, .diag-inline a:focus-visible { text-decoration: underline; }
.section-diagnosis > p { margin-top: 4px; color: var(--note); font-size: 11px; line-height: 1.5; }
.notice { padding: 20px 24px; line-height: 1.7; }
