/* ===== 共通CSS ===== */
:root {
  --navy: #0a1f5c;
  --blue: #1155cc;
  --blue-bright: #1a7cff;
  --cyan: #00c8e0;
  --orange: #ff4d00;
  --orange2: #ff8800;
  --yellow: #ffe000;
  --yellow2: #fff176;
  --green: #00b050;
  --red: #e60000;
  --pink: #ff3366;
  --white: #fff;
  --offwhite: #f5f7ff;
  --gray: #f0f2f8;
  --gray-text: #555;
  --text: #111;
  --radius: 8px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  background: var(--offwhite);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}

/* HEADER */
.site-header {
  background: var(--navy);
  padding: 8px 12px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 3px solid var(--cyan);
}
.site-name {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.logo-placeholder {
  width: 100px; height: 28px;
  background: rgba(255,255,255,0.12);
  border: 1px dashed rgba(255,255,255,0.3);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: rgba(255,255,255,0.45);
  overflow: hidden;
}
.logo-placeholder img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
}
.header-right { display: flex; align-items: center; gap: 6px; }
.header-pr { background: var(--orange); color: #fff; font-size: 10px; font-weight: 900; padding: 2px 7px; border-radius: 3px; }
.header-tag { background: var(--cyan); color: var(--navy); font-size: 10px; font-weight: 900; padding: 2px 7px; border-radius: 3px; }
.header-back {
  background: rgba(255,255,255,0.12); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 4px; text-decoration: none;
  display: flex; align-items: center; gap: 4px; border: 1px solid rgba(255,255,255,0.2);
}

/* LENDER CARD 共通 */
.lender-card {
  background: var(--white); border-radius: 10px; margin-bottom: 20px;
  overflow: hidden; border: 2px solid var(--gray);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.lender-card.no-link { opacity: 0.82; }

/* カードトップ全体ラッパー */
.card-top-wrap { display: flex; flex-direction: row; align-items: stretch; }
.card-top-wrap[data-rank="1"] { background: linear-gradient(135deg,#fffde0,#fff8b0); border-bottom: 3px solid #FFD700; }
.card-top-wrap[data-rank="2"] { background: linear-gradient(135deg,#f0f2f8,#e4e8f2); border-bottom: 3px solid #b0bcd0; }
.card-top-wrap[data-rank="3"] { background: linear-gradient(135deg,#fdf2ec,#f5e0d0); border-bottom: 3px solid #D4845A; }
.card-top-wrap[data-rank="x"] { background: linear-gradient(135deg,#f5f7ff,#eef0f8); border-bottom: 3px solid #c0c8d8; }

/* カードヘッダー内（社名・キャッチ・★） */
.card-top-block { display: flex; align-items: flex-start; padding: 12px 12px 10px; flex: 1; background: transparent; }
.card-top-right { flex: 1; min-width: 0; }
.card-top-name { font-size: 18px; font-weight: 900; color: var(--navy); line-height: 1.2; }
.card-top-name a { text-decoration: none; color: inherit; }
.card-top-catch { font-size: 11px; color: var(--gray-text); margin-top: 2px; }
.card-top-stars { margin-top: 6px; }

/* 半塗り★ */
.star-wrap { display: inline-flex; gap: 1px; }
.star { position: relative; display: inline-block; font-size: 14px; color: #e0e0e0; }
.star.full { color: #f5a623; }
.star.half::after {
  content: '★'; position: absolute; left: 0; top: 0;
  color: #f5a623; width: 50%; overflow: hidden; display: block;
}

/* バナーラッパー */
.card-banner-wrap { flex-shrink: 0; padding: 10px 10px 10px 0; display: flex; align-items: flex-start; background: transparent; }
.card-banner-wrap > a { display: block; text-decoration: none; }
.card-banner {
  width: 108px; aspect-ratio: 300/250;
  background: #eef2f7; border: 1.5px dashed #b0bcd0; border-radius: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 9px; color: #9aa5b8; text-align: center; gap: 4px;
}
.card-banner img { width: 100%; height: auto; display: block; border-radius: 5px; }

/* PC（481px以上）：縦並び、バナーはヘッダー外・白背景 */
@media (min-width: 481px) {
  .card-top-wrap { flex-direction: column; background: transparent; border-bottom: none; }
  .card-top-wrap[data-rank="1"] .card-top-block { background: linear-gradient(135deg,#fffde0,#fff8b0); border-bottom: 3px solid #FFD700; }
  .card-top-wrap[data-rank="2"] .card-top-block { background: linear-gradient(135deg,#f0f2f8,#e4e8f2); border-bottom: 3px solid #b0bcd0; }
  .card-top-wrap[data-rank="3"] .card-top-block { background: linear-gradient(135deg,#fdf2ec,#f5e0d0); border-bottom: 3px solid #D4845A; }
  .card-top-wrap[data-rank="x"] .card-top-block { background: linear-gradient(135deg,#f5f7ff,#eef0f8); border-bottom: 3px solid #c0c8d8; }
  .card-banner-wrap { padding: 12px; justify-content: center; background: var(--white); border-bottom: 1px solid #e8ecf4; }
  .card-banner { width: 300px; }
}

/* チェックリスト */
.check-list-block { padding: 10px 12px; border-top: 1px solid #e8ecf4; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; font-weight: 700; color: var(--gray-text); margin-bottom: 5px; line-height: 1.4; }
.check-list li:last-child { margin-bottom: 0; }
.check-icon { background: var(--green); color: #fff; font-weight: 900; font-size: 10px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.point-note-inline { font-size: 10px; color: var(--gray-text); margin-top: 7px; padding-top: 7px; border-top: 1px solid #e8ecf4; line-height: 1.6; }

/* バッジ */
.badge { font-size: 11px; font-weight: 900; padding: 4px 9px; border-radius: 4px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px 12px 0; }
.badge-row-sep { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px 12px 0; border-top: 1px solid #e8ecf4; }
.bd-blue   { background: #e8f2ff; color: var(--blue);  border: 1.5px solid #b3d0f0; }
.bd-green  { background: #e6f7ec; color: var(--green); border: 1.5px solid #a8dbb8; }
.bd-orange { background: #fff0e0; color: var(--orange);border: 1.5px solid #f5c88a; }
.bd-red    { background: #fdeaea; color: var(--red);   border: 1.5px solid #f0b0b0; }
.bd-cyan   { background: #e0faff; color: #007a8c;      border: 1.5px solid #80d8e8; }
.bd-yellow { background: var(--yellow); color: var(--navy); border: 1.5px solid #e0c800; }

/* スペック表 */
.spec-table { width: 100%; border-collapse: collapse; margin: 10px 0 0; font-size: 13px; }
.spec-table th { background: var(--offwhite); color: var(--gray-text); font-weight: 700; padding: 8px 11px; width: 38%; border-bottom: 1px solid #e8ecf4; text-align: left; font-size: 12px; }
.spec-table td { padding: 8px 11px; border-bottom: 1px solid #e8ecf4; font-weight: 700; }
.val-fast { color: var(--orange); font-weight: 900; font-size: 14px; }
.val-main { color: var(--navy); font-weight: 900; }
.conveni-icons { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; align-items: center; }
.conveni-icon-img { height: 28px; width: auto; display: block; }
.conveni-tag { font-size: 11px; font-weight: 700; background: #f0f2f8; border: 1px solid #dde3ec; border-radius: 3px; padding: 2px 7px; color: #555; }

/* CTA */
.cta-area { padding: 12px 12px 14px; background: var(--white); }
.cta-btn { display: block; width: 100%; background: linear-gradient(135deg, var(--orange) 0%, var(--orange2) 100%); color: #fff; text-align: center; padding: 16px 32px 16px 14px; border-radius: 8px; font-size: 16px; font-weight: 900; text-decoration: none; letter-spacing: 0.04em; box-shadow: 0 4px 14px rgba(255,77,0,0.4), inset 0 1px 0 rgba(255,255,255,0.2); position: relative; transition: transform 0.1s, box-shadow 0.1s; }
.cta-btn:active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(255,77,0,0.3); }
.cta-btn::after { content: ''; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 9px; height: 9px; border-top: 2.5px solid #fff; border-right: 2.5px solid #fff; rotate: 45deg; }
.cta-sub { text-align: center; font-size: 11px; color: var(--gray-text); margin-top: 6px; }
.no-link-note { padding: 12px; font-size: 12px; color: var(--gray-text); text-align: center; background: var(--offwhite); border-top: 1px solid var(--gray); }
.pr-label { display: inline-block; background: #e0e0e0; color: #555; font-size: 10px; padding: 1px 5px; border-radius: 3px; vertical-align: middle; margin-left: 4px; }

/* カウントダウン */
.cd-bar { display: flex; align-items: center; gap: 7px; background: linear-gradient(90deg,#fff3cd,#fff8e0,#fff3cd); border-top: 2px solid #f5c842; border-bottom: 1px solid #f5c842; padding: 9px 12px; margin-top: 6px; font-size: 12px; font-weight: 900; color: #7a4d00; }
.cd-timer { color: var(--red); font-size: 18px; font-variant-numeric: tabular-nums; font-weight: 900; }
.cd-off { display: none; background: #f5f5f5; border-top: 2px solid #e0e0e0; border-bottom: 1px solid #e0e0e0; padding: 9px 12px; margin-top: 6px; font-size: 12px; color: #888; }

/* フッター */
.site-footer { background: #0a1030; color: rgba(255,255,255,0.45); font-size: 11px; padding: 16px 12px; line-height: 1.75; text-align: center; }
.footer-left { text-align: left; }
.footer-left a { text-decoration: underline; color: inherit; }
.footer-links { display: flex; justify-content: center; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 13px; }

/* スティッキー */
.sticky-cta { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: var(--navy); padding: 9px 12px; border-top: 3px solid var(--cyan); box-shadow: 0 -3px 14px rgba(0,0,0,0.25); z-index: 100; display: flex; align-items: center; gap: 9px; transform: translateX(-50%) translateY(100%); transition: transform 0.3s ease; }
.sticky-cta.visible {
  transform: translateX(-50%) translateY(0);    /* 表示状態 */
}
.sticky-logo { width: 56px; height: 30px; background: rgba(255,255,255,0.1); border: 1px dashed rgba(255,255,255,0.25); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 9px; color: rgba(255,255,255,0.35); flex-shrink: 0; overflow: hidden; }
.sticky-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sticky-text { flex: 1; color: #fff; font-size: 11px; line-height: 1.3; }
.sticky-text strong { font-size: 13px; font-weight: 900; display: block; color: var(--yellow); }
.sticky-cta-btn { background: linear-gradient(135deg, var(--orange), var(--orange2)); color: #fff; font-size: 12px; font-weight: 900; padding: 9px 13px; border-radius: 6px; text-decoration: none; white-space: nowrap; flex-shrink: 0; box-shadow: 0 2px 8px rgba(255,77,0,0.4); }
.sticky-spacer { height: 60px; }

/* セクション区切り */
.section-sep { height: 8px; background: var(--offwhite); }