/* ============================================================
   facmiru.jp 詳細ページのカード化と、送客ボタンの視認性（2026-09-10）
   配色はブランドに合わせる：
     濃紺 #243b4a（見出し）／青 #2664b8（強調）／青緑 #2b819f（補助）
     淡い青 #f1f7ff・#e7f0fb（面）／橙 #e9a035（送客ボタンだけ）
   橙は「公式サイトへ出るボタン」専用にする。内部リンクに橙を使うと、
   どれを押せば申し込めるのかが分からなくなる。
   ============================================================ */

:root{
  --fm-navy:#243b4a; --fm-blue:#2664b8; --fm-teal:#2b819f;
  --fm-pale:#f1f7ff; --fm-pale2:#e7f0fb; --fm-line:#d6e2ef;
  --fm-cta:#e9a035; --fm-cta-hover:#d9861c; --fm-cta-ink:#1f1709;
  --fm-muted:#5d6f80;
}

/* ---- 送客ボタン（全ページ共通）---------------------------------- */
.btn.outbound{
  background:var(--fm-cta); border-color:var(--fm-cta); color:var(--fm-cta-ink);
  font-weight:700; min-height:48px; border-radius:6px;
  box-shadow:0 2px 0 #b8791f, 0 4px 10px rgba(185,121,31,.18);
  transition:transform .08s ease, box-shadow .08s ease, background .15s ease;
}
.btn.outbound:hover{background:var(--fm-cta-hover); border-color:var(--fm-cta-hover); color:var(--fm-cta-ink)}
.btn.outbound:active{transform:translateY(2px); box-shadow:0 0 0 #b8791f}
.btn.outbound:focus-visible{outline:3px solid #2664b8; outline-offset:2px}
.btn.outbound span[aria-hidden]{font-weight:700}

/* ---- 会社ページ：上部カード -------------------------------------- */
.detailpage{max-width:880px;margin:0 auto}
.detail-hero{
  background:linear-gradient(135deg,#ffffff 0%,var(--fm-pale) 100%);
  border:1px solid var(--fm-line); border-radius:14px;
  padding:22px 24px 18px; margin:6px 0 26px;
  box-shadow:0 6px 20px rgba(36,59,74,.06);
}
.detail-id{display:flex;align-items:center;gap:18px;margin-bottom:16px}
.detail-logo{max-height:52px;max-width:170px;width:auto;height:auto;object-fit:contain;
  background:#fff;border:1px solid #e3ebf3;border-radius:8px;padding:6px 10px}
.detail-hero h1{font-size:28px;line-height:1.35;color:var(--fm-navy);margin:0;font-weight:680}
.detail-corp{margin:4px 0 0;font-size:13px;color:var(--fm-muted);display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
.badge-ok{white-space:nowrap;font-size:11px;font-weight:700;color:#1f6a45;background:#e3f4ea;border:1px solid #b9dfc8;border-radius:999px;padding:1px 9px}
.badge-loan{font-size:11px;font-weight:700;color:#7a4b0e;background:#fdf0dc;border:1px solid #f0cf9b;border-radius:999px;padding:1px 9px}
.detail-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 0 12px}
.detail-metrics .metric{background:#fff;border:1px solid var(--fm-line);border-radius:10px;padding:12px 10px;text-align:center}
.detail-metrics .metric>span{display:block;font-size:12px;color:var(--fm-muted);margin-bottom:3px}
.detail-metrics .metric strong.fee{font-size:26px;color:var(--fm-blue);font-variant-numeric:tabular-nums}
.detail-metrics .metric strong.smallmetric{font-size:16px;color:var(--fm-navy)}
.detail-hero .cardtags{margin:0 0 16px}
.detail-hero .cardtags span{background:#fff;border:1px solid var(--fm-line);color:#35526a}
.detail-acts2{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.detail-acts2 .offer-btn{flex:0 1 360px;min-height:54px;font-size:17px;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.detail-sub{display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:14px}
.detail-sub a{color:var(--fm-teal);font-weight:600}
.detail-verify{margin:14px 0 0;font-size:12px;line-height:1.7;color:var(--fm-muted)}
.detail-verify .adlabel{margin-right:6px}

/* ---- 会社ページ：見出しと本文 ------------------------------------- */
.detailpage h2{
  font-size:21px;color:var(--fm-navy);font-weight:650;line-height:1.45;
  margin:38px 0 14px;padding:0 0 0 14px;border-left:5px solid var(--fm-blue);
}
.detailpage table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--fm-line);border-radius:10px;overflow:hidden;background:#fff}
.detailpage table th{background:var(--fm-pale);color:var(--fm-navy);font-weight:650;width:30%;text-align:left;padding:12px 14px;border-bottom:1px solid var(--fm-line);font-size:14px}
.detailpage table td{padding:12px 14px;border-bottom:1px solid var(--fm-line);font-size:14px;line-height:1.75}
.detailpage table tr:last-child th,.detailpage table tr:last-child td{border-bottom:0}

/* 取引条件のカード格子 */
.factgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.fact{background:#fff;border:1px solid var(--fm-line);border-radius:10px;padding:12px 14px;min-height:78px}
.fact-k{display:block;font-size:12px;color:var(--fm-muted);margin-bottom:4px;font-weight:600}
.fact-v{font-size:15px;color:var(--fm-navy);font-weight:600;line-height:1.6}
.fact-v .note{display:block;font-weight:400;font-size:12px;color:var(--fm-muted);margin-top:4px;line-height:1.65}
.fact.is-unk{background:#f7f9fb;border-style:dashed}
.fact.is-unk .fact-v{color:#8a97a3;font-weight:500}

/* 根拠・回答などの囲み */
.detailpage .facts{background:#fff;border:1px solid var(--fm-line);border-radius:10px;padding:14px 16px}
.detailpage .answerbox{border-radius:10px}

/* ---- 申込みボックス（途中・末尾）------------------------------------ */
.offerbox{
  display:grid;grid-template-columns:1fr auto;align-items:center;gap:16px 24px;
  margin:28px 0;padding:20px 22px;border-radius:14px;
  background:linear-gradient(120deg,#eef5ff 0%,#e4effc 55%,#d8e8f8 100%);
  border:1px solid #c9dbef;
}
.offerbox-lead{margin:0;font-size:13px;color:#426789;font-weight:600}
.offerbox-name{margin:2px 0 6px;font-size:22px;font-weight:680;color:var(--fm-navy);line-height:1.35}
.offerbox-points{margin:0;display:flex;flex-wrap:wrap;gap:4px 16px;font-size:13px;color:#35526a}
.offerbox-points b{color:var(--fm-blue);font-weight:700}
.offerbox-act{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:260px}
.offerbox .offer-btn{min-height:54px;font-size:17px;display:flex;align-items:center;justify-content:center;gap:8px}
.offerbox-note{margin:0;font-size:11px;color:var(--fm-muted);text-align:center;line-height:1.6}
.offerbox-note .adlabel{margin-right:5px}

/* ---- 固定バー：会社ページでは会社名＋ボタン --------------------------- */
.persistent-cta .btn.outbound{min-width:260px}

/* ---- スマホ ---------------------------------------------------- */
@media(max-width:720px){
  .detail-hero{padding:16px 14px 14px;border-radius:12px}
  .detail-id{gap:12px;margin-bottom:12px}
  .detail-logo{max-height:40px;max-width:120px;padding:4px 7px}
  .detail-hero h1{font-size:22px}
  .detail-metrics{gap:6px}
  .detail-metrics .metric{padding:9px 4px}
  .detail-metrics .metric strong.fee{font-size:20px}
  .detail-metrics .metric strong.smallmetric{font-size:13px}
  .detail-acts2{flex-direction:column;align-items:stretch;gap:10px}
  .detail-acts2 .offer-btn{flex:none;width:100%}
  .detail-sub{justify-content:space-between}
  .factgrid{grid-template-columns:1fr 1fr;gap:8px}
  .fact{padding:10px 11px;min-height:0}
  .fact-v{font-size:14px}
  .detailpage h2{font-size:18px;margin-top:30px}
  .detailpage table th{width:34%;padding:10px;font-size:13px}
  .detailpage table td{padding:10px;font-size:13px}
  .offerbox{grid-template-columns:1fr;padding:16px 14px;gap:12px}
  .offerbox-name{font-size:19px}
  .offerbox-act{min-width:0}
}
@media(max-width:380px){ .factgrid{grid-template-columns:1fr} }

@media(max-width:720px){
  .detail-id{align-items:flex-start}
  .detail-corp{font-size:12px}
  .badge-ok,.badge-loan{font-size:10.5px;padding:0 7px}
  .detail-metrics .metric>span{font-size:10.5px;line-height:1.4}
}

/* 比較表の中の「公式サイト」ボタンは行の高さを崩さない大きさに */
.c-cta .btn.outbound{min-height:34px;padding:5px 10px;font-size:12px;white-space:nowrap;box-shadow:0 1px 0 #b8791f}

/* 申込み前によくある疑問 */
.faqlist{background:#fff;border:1px solid var(--fm-line);border-radius:12px;padding:6px 18px 10px}
.faqlist h3{font-size:16px;color:var(--fm-navy);font-weight:650;margin:16px 0 6px;padding-left:28px;position:relative;line-height:1.5}
.faqlist h3::before{content:"Q";position:absolute;left:0;top:0;width:20px;height:20px;border-radius:50%;background:var(--fm-blue);color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;margin-top:2px}
.faqlist p{margin:0 0 12px;padding:0 0 14px 28px;border-bottom:1px dashed var(--fm-line);font-size:14.5px;line-height:1.85}
.faqlist p:last-child{border-bottom:0;padding-bottom:4px}
@media(max-width:720px){.faqlist{padding:4px 12px 8px}.faqlist h3{font-size:15px}.faqlist p{font-size:14px}}

/* 運営会社に直接確認した会社の目印（法人番号の照合より一段強い裏付け） */
.badge-direct{white-space:nowrap;font-size:11px;font-weight:700;color:#fff;background:var(--fm-blue);border:1px solid var(--fm-blue);border-radius:999px;padding:1px 9px}
.direct-mark{display:inline-block;font-weight:700;color:var(--fm-blue);background:#e7f0fb;border-radius:999px;padding:0 7px;font-size:11px}
@media(max-width:720px){.badge-direct{font-size:10.5px;padding:0 7px}}

/* ---- 記事（/guide/<slug>/） ------------------------------------------- */
.guidearticle .pageheader{margin-bottom:14px}
.guidearticle .kicker{display:inline-block;font-size:12px;font-weight:700;color:var(--fm-blue);background:var(--fm-pale2);border-radius:999px;padding:2px 10px;margin:0 0 6px}
.guidearticle h1{font-size:28px;line-height:1.45;color:var(--fm-navy)}
.guidearticle .byline{font-size:12px;color:var(--fm-muted);margin-top:8px}
.answerbox-top{background:linear-gradient(135deg,#fff 0%,var(--fm-pale) 100%);border:1px solid var(--fm-line);border-left:6px solid var(--fm-blue);border-radius:12px;padding:16px 20px;margin:0 0 20px}
.answerbox-top .answer-label{display:inline-block;font-size:12px;font-weight:800;color:#fff;background:var(--fm-blue);border-radius:4px;padding:1px 8px;margin:0 0 8px}
.answerbox-top p{margin:0 0 8px;font-size:15.5px;line-height:1.9}
.answerbox-top p:last-child{margin-bottom:0}
.toppicks{border:1px solid var(--fm-line);border-radius:12px;padding:14px 16px;margin:0 0 26px;background:#fff}
.toppicks-head{font-weight:700;color:var(--fm-navy);margin:0 0 10px}
.toppicks-head span{font-weight:400;font-size:12px;color:var(--fm-muted);margin-left:6px}
.toppicks-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.toppick{border:1px solid var(--fm-line);border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:6px;background:var(--fm-pale)}
.toppick-name{margin:0;font-weight:700;font-size:16px}
.toppick-name a{color:var(--fm-navy)}
.toppick-point{margin:0;font-size:13px;color:#35526a;flex:1}
.toppick .btn.outbound{min-height:44px;font-size:14px;display:flex;align-items:center;justify-content:center;gap:6px}
.toppicks-note{font-size:11.5px;color:var(--fm-muted);margin:8px 0 0}
.guidearticle .article-body h2{font-size:21px;color:var(--fm-navy);font-weight:650;line-height:1.45;margin:34px 0 12px;padding-left:14px;border-left:5px solid var(--fm-blue)}
.guidearticle .article-body section:first-child h2{margin-top:0}
.guidearticle .article-body p,.guidearticle .article-body li{font-size:15px;line-height:1.95}
.guidearticle .datatable th a{color:var(--fm-navy);font-weight:700}
.guidearticle .datatable td,.guidearticle .datatable th{font-size:13.5px;vertical-align:top}
.checklist li{margin:0 0 6px}
.sources ul{padding-left:20px}
.sources li{font-size:14px}
.related-articles .category-link h3{font-size:15px}
.consolidated{background:#fff8e6;border:1px solid #f0cf9b;border-radius:10px;padding:10px 14px;font-size:14px;margin:0 0 16px}
.consolidated a{font-weight:700}
@media(max-width:720px){
  .guidearticle h1{font-size:22px}
  .toppicks-grid{grid-template-columns:1fr}
  .answerbox-top{padding:14px}
  .answerbox-top p{font-size:15px}
}

/* 記事の中の送客行 */
.cta-row{background:var(--fm-pale);border:1px solid #c9dbef;border-radius:12px;padding:12px 14px;margin:16px 0 20px}
.cta-row-lead{margin:0 0 10px;font-weight:700;color:var(--fm-navy);font-size:14.5px}
.cta-row-items{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.cta-item{background:#fff;border:1px solid var(--fm-line);border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:4px}
.cta-item-name{font-weight:700;color:var(--fm-navy);font-size:15px}
.cta-item-meta{font-size:12.5px;color:#35526a;flex:1}
.cta-item .btn.outbound{min-height:42px;font-size:13.5px;display:flex;align-items:center;justify-content:center;gap:6px;margin-top:4px}
.cta-row-note{margin:8px 0 0;font-size:11px;color:var(--fm-muted)}
.guidearticle .datatable .c-cta .btn.outbound{min-height:32px;padding:4px 9px;font-size:12px;white-space:nowrap}
@media(max-width:720px){.cta-row-items{grid-template-columns:1fr}}
.footer-articles{display:flex;flex-wrap:wrap;gap:4px 14px;margin:0 0 10px;font-size:13px}
.footer-articles a{color:inherit;opacity:.9}
