/* =========================================================
   競輪ランキングのデザイン（PC・SP共通）
   pc.css / sp.css の後に読み込み、トップページ（ファーストビュー・比較表・ランキング）の見た目を上書きします。
   色はこの先頭の「デザイントークン」を変えると全体に反映されます。
   ========================================================= */
:root{
  --k-page:#f1eef1; --k-surface:#ffffff; --k-surface-2:#ececec; --k-text:#222; --k-muted:#777;
  --k-line:#d9d9d9; --k-dark:#1c1c1c; --k-dark-2:#444;
  --k-red:#e60012; --k-red-soft:#fbe4e4; --k-green:#00c04b; --k-green-dark:#009b3c; --k-btn-sm:#00b23c;
  --k-blue:#3d5aab; --k-gold:#f2b705; --k-hl:#fff27a; --k-pale:#fff8dd; --k-star:#f5b301; --k-accent-blue:#1e7cf2;
  --k-col:600px;           /* PCでのトップページの横幅 */
  --font:"Noto Sans JP","Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",Meiryo,sans-serif;
}

/* ---------- ページ全体 ---------- */
body{background:var(--k-page);color:var(--k-text);font-family:var(--font)}
.site-header{border-bottom-color:var(--k-red)}
#toTop{width:64px;height:64px;border-radius:12px;background:rgba(130,112,104,.88);color:#fff;font-size:20px}
#toTop.show{opacity:1}

/* トップページは中央の1カラム（スマホは画面幅いっぱい） */
main.wrap.k-top{max-width:var(--k-col);margin:0 auto;padding:0 0 8px;background:var(--k-surface);overflow:hidden}
.k-top .sbox-wrap.in{margin:16px 12px 0}
.k-top .topblock{padding:0 14px}
.k-top .cmp-top.page-pr{padding:6px 12px 0;margin:0}

/* ファーストビュー（システム設定のPC／SPヘッダー画像） */
.k-fv img,.k-fv video{display:block;width:100%;height:auto;border-radius:0}

/* ---------- 見出しの帯（比較表・ランキング） ---------- */
.k-sec-banner{position:relative;margin:24px 8px 0;padding:14px 10px;background:linear-gradient(#3a3a3a,#1d1d1d);color:#fff;text-align:center;
  font-weight:900;font-size:clamp(18px,5.4vw,26px);line-height:1.4}
.k-sec-banner b{color:#f6d23b}
.k-sec-banner::after{content:"";position:absolute;left:50%;bottom:-12px;transform:translateX(-50%);border:12px solid transparent;border-top-color:#1d1d1d;border-bottom:0}
.k-sec-banner.is-img{padding:0;background:none}
.k-sec-banner.is-img::after{display:none}
.k-sec-banner.is-img img,.k-sec-banner.is-img video{display:block;width:100%;height:auto}

/* ---------- 比較表 ---------- */
.k-cmp-sec{margin:0 0 8px}
.k-cmp-bottom{margin-top:56px}
.k-pr{display:flex;justify-content:flex-end;margin:6px 10px 0}
.k-cmp-wrap{overflow-x:auto;margin:14px 0 6px;-webkit-overflow-scrolling:touch}
.k-cmp{border-collapse:collapse;width:100%;table-layout:fixed;font-weight:700;text-align:center;font-size:clamp(11px,3.4vw,14px);line-height:1.45}
.k-cmp th,.k-cmp td{border:1px solid var(--k-line);padding:8px 3px;background:var(--k-surface);word-break:break-all;vertical-align:middle}
.k-cmp th[scope=row]{width:74px;background:var(--k-dark);color:#fff;font-size:13px;line-height:1.35}
.k-cmp thead th{background:var(--k-dark);color:#fff;font-size:13px}
.k-cmp thead th .k-crown{display:block;width:44px;height:34px;margin:0 auto 2px}
.k-cmp td.is-top{background:var(--k-pale)}
/* 4件以上は横スクロール（左の項目列は固定） */
.k-cmp.is-scroll{width:auto;min-width:100%}
.k-cmp.is-scroll td,.k-cmp.is-scroll thead th[scope=col]{min-width:118px;width:118px}
.k-cmp.is-scroll th[scope=row]{position:sticky;left:0;z-index:2}
.k-scroll-hint{margin:0;padding:0 12px;text-align:right;font-size:12px;color:var(--k-muted)}

.k-logo-link{display:block;text-decoration:none}
.k-logo{display:block;width:92%;max-height:72px;object-fit:contain;margin:0 auto 4px}
.k-site{font-size:clamp(12px,3.4vw,14px)}
.k-score{font-size:clamp(20px,6vw,26px);font-weight:900}
.k-score small{font-size:.6em}
.k-cmp .is-top .k-score,.k-cmp .is-top .k-val{color:var(--k-red)}
.k-mark{display:block;font-size:30px;line-height:1}
.k-mark.dbl{color:var(--k-red)} .k-mark.sgl{color:var(--k-gold)} .k-mark.tri{color:#6c9ce6} .k-mark.x{color:#999}
.k-pt{font-size:clamp(11px,3.3vw,13.5px)}
.k-pt em{font-style:normal;color:var(--k-red)}
.k-reg-ic{display:block;width:36px;height:36px;object-fit:contain;margin:0 auto 4px}
.k-reg{font-size:13px}
.k-cmp .k-btn-sm{display:block;padding:8px 4px;border-radius:4px;background:var(--k-btn-sm);color:#fff;text-decoration:none;font-size:clamp(11px,3.4vw,14px);line-height:1.35}
.k-cmp .cta-img img{display:block;width:100%;height:auto}
.k-cmp-sec .cmp-note{padding:0 12px}

/* ---------- ランキング ---------- */
.k-rank-title{margin-top:40px}
.k-rank-head{display:flex;align-items:center;gap:12px;margin:48px 14px 0;padding-bottom:8px;border-bottom:2px solid var(--k-text)}
.k-crown-l{width:60px;height:46px;flex:none}
.k-rank-head h3{flex:1;margin:0;font-size:clamp(22px,7vw,34px);font-weight:900;line-height:1.3}
.k-rank-head .k-no{font-size:.6em;margin-right:6px}
.k-ad{font-size:15px}
.k-tagline{display:flex;align-items:center;gap:8px;margin:0;padding:8px 10px;color:var(--k-red);font-weight:900;font-size:clamp(14px,4.4vw,19px);line-height:1.4}
.k-tag-ic{width:46px;height:46px;flex:none}
.k-tag-img{width:auto;max-width:120px;object-fit:contain} /* 順位ごとに差し込んだ画像は比率を保つ */
.k-banner{display:block;margin:0 10px;text-decoration:none}
.k-banner img,.k-banner video{display:block;width:100%;height:auto}

.k-score-bar{margin:22px 10px 0;padding:6px 0 2px;background:var(--k-dark-2);color:#fff;text-align:center;font-weight:900}
.k-score-bar small{display:block;font-size:12px;opacity:.85}
.k-score-bar strong{color:#d6f25c;font-size:34px;line-height:1.2}
.k-info{width:calc(100% - 20px);margin:0 10px;border-collapse:collapse;font-weight:700}
.k-info.no-bar{margin-top:22px;border-top:1px solid var(--k-line)}
.k-info th,.k-info td{padding:14px 10px;border-bottom:1px solid var(--k-line);text-align:left}
.k-info th{width:34%;text-align:center;font-size:14px;border-right:1px solid var(--k-line)}
.k-info td{font-size:clamp(15px,4.4vw,17px)}
.k-hl{background:linear-gradient(transparent 60%,var(--k-hl) 60%)}

/* 大きいCTA */
.k-cta-wrap{margin:44px 22px 28px}
.k-cta{position:relative;display:block;text-decoration:none}
.k-cta-btn{display:flex;align-items:center;gap:8px;height:clamp(80px,19vw,104px);padding:0 26px 0 clamp(92px,22vw,112px);border-radius:999px;background:var(--k-green);
  box-shadow:0 6px 0 var(--k-green-dark),0 10px 18px rgba(0,0,0,.15);color:#fff;font-weight:900;font-size:clamp(17px,5.4vw,27px);line-height:1.3}
.k-cta-label{flex:1}
.k-chev{width:16px;height:26px;flex:none}
.k-cta-face{position:absolute;left:12px;top:50%;transform:translateY(-36%);width:clamp(76px,18vw,96px);height:clamp(76px,18vw,96px);z-index:1}
.k-cta-note{position:absolute;left:0;top:-30px;z-index:2;transform:rotate(-8deg);padding:3px 8px;border:2px solid #333;border-radius:6px;background:#fff;color:#222;font-size:12px;font-weight:900;line-height:1.3}
.k-cta-note em{font-style:normal;color:var(--k-red)}
.k-cta:focus-visible{outline:3px solid var(--k-accent-blue);outline-offset:6px;border-radius:999px}
.k-cta:active .k-cta-btn{transform:translateY(3px);box-shadow:0 3px 0 var(--k-green-dark)}
.k-cta-img{display:block}
.k-cta-img img{display:block;width:100%;height:auto}

/* 的中実績 */
.k-res-head{display:flex;align-items:center;gap:6px;padding:12px;background:repeating-linear-gradient(-45deg,#e00 0 6px,#c00 6px 12px);color:#fff}
.k-res-head.is-img{display:block;padding:0;background:none}
.k-res-head.is-img img,.k-res-head.is-img video{display:block;width:100%;height:auto}
.k-trophy{width:68px;height:62px;flex:none}
.k-res-head .t1{display:inline-block;padding:0 14px;border-radius:999px;background:#fff;color:#222;font-weight:900;font-size:clamp(13px,3.9vw,17px)}
.k-res-head .t1 b{font-size:1.2em}
.k-res-head .t2{display:block;margin-top:2px;font-weight:900;font-size:clamp(22px,6.6vw,32px);letter-spacing:.06em;line-height:1.3}
.k-results{padding:14px 16px;background:var(--k-red-soft)}
.k-res-card{margin-bottom:16px;padding:20px 14px;border-radius:8px;background:var(--k-surface);box-shadow:0 1px 4px rgba(0,0,0,.12)}
.k-res-card:last-child{margin-bottom:0}
.k-res-card img,.k-res-card video{display:block;width:100%;height:auto}

/* おすすめポイント */
.k-points{padding:0 16px 16px;background:var(--k-blue)}
.k-points h4{margin:0;padding:14px 0;color:#fff;text-align:center;font-size:clamp(22px,6vw,28px);font-weight:900}
.k-points ul{list-style:none;margin:0;padding:0;background:var(--k-surface)}
.k-points li{display:flex;align-items:center;gap:18px;padding:22px 16px;border-bottom:1px solid var(--k-line);font-weight:900;font-size:clamp(16px,4.6vw,21px);line-height:1.45}
.k-points li:last-child{border-bottom:0}
.k-points li em{font-style:normal;color:var(--k-red)}
.k-chk{flex:none;display:grid;place-items:center;width:30px;height:30px;border:1.5px solid #e66;color:#e44}

/* 口コミ */
.k-reviews{padding:30px 12px;background:var(--k-surface-2)}
.k-rv-q{margin:0;text-align:center;font-weight:700;font-size:clamp(16px,5vw,24px);letter-spacing:.08em}
.k-rv-q span{display:inline-block;padding:0 10px;border-bottom:2px solid var(--k-text)}
.k-rv-title{margin:4px 0 14px;text-align:center;font-weight:900;font-size:clamp(18px,6.2vw,34px);letter-spacing:.04em;white-space:nowrap}
.k-rv-title em{font-style:normal;color:var(--k-accent-blue)}
.k-rv{margin-bottom:12px;padding:22px 16px;border-radius:14px;background:var(--k-surface);font-size:clamp(15px,4.4vw,19px);line-height:1.6}
.k-who{margin:0 0 6px;font-weight:900}
.k-stars{color:var(--k-star);letter-spacing:-.05em}
.k-stars .off{color:#ddd}
.k-rv mark{background:linear-gradient(transparent 60%,var(--k-hl) 60%);color:inherit;font-weight:900}
.k-rv-more{display:none}
.k-rv-more.open{display:block}
.k-rv-note{margin:18px 0;text-align:center;font-size:13px;color:var(--k-muted)}
.k-rv-toggle{display:flex;align-items:center;justify-content:center;gap:22px;width:100%;padding:16px 10px;border:0;border-radius:4px;background:#a5a5a5;color:#fff;
  font:900 clamp(17px,5.4vw,26px) var(--font);cursor:pointer}
.k-rv-toggle svg{width:36px;height:20px;transition:transform .25s}
.k-rv-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
.k-rv-toggle:focus-visible{outline:3px solid var(--k-accent-blue);outline-offset:3px}

/* キャンペーン画像 */
.k-camp{margin:24px 10px 0}
.k-camp img,.k-camp video{display:block;width:100%;height:auto}

/* 検索結果ページ（ランキングと同じ見た目） */
.search-results .k-rank-sec{max-width:var(--k-col);margin:0 auto;background:var(--k-surface);padding-bottom:8px}

@media (prefers-reduced-motion:reduce){.k-rv-toggle svg{transition:none}}

/* 旧デザインのボタン指定（.btn）を比較表では打ち消す */
.k-cmp .btn{display:block;min-height:0;max-width:none;margin:0;border-radius:4px;box-shadow:none;font-weight:700}
