/* ---- 全デザイン共通の土台(build_css.py が各デザインの先頭に付ける) ---- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;line-height:1.75;overflow-wrap:anywhere;word-break:normal}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{margin:0;line-height:1.4}
.wrap{max-width:1180px;margin:0 auto;padding:0 20px}
.vis{position:relative;aspect-ratio:1200/630;overflow:hidden;background:var(--sky)}
.vis img{width:100%;height:100%;object-fit:cover}
.chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.chip{display:inline-block;font-size:11px;font-weight:700;color:#fff;background:var(--chip,var(--accent));padding:1px 8px;line-height:1.7;white-space:nowrap}
.kchip{display:inline-block;font-size:11px;font-weight:700;color:var(--kchip);border:1px solid var(--kchip);padding:0 7px;line-height:1.7;white-space:nowrap}
.tchip{font-size:11px;opacity:.7}
.crumb{font-size:12px;opacity:.7;margin:0 0 10px}
.crumb a:hover{text-decoration:underline}
.post figure{margin:0}
.post figcaption{font-size:11px;opacity:.65;margin-top:6px}
.post figcaption a{text-decoration:underline}
.body{font-size:16.5px;line-height:1.95}
.body p{margin:0 0 1.3em}
.body h2{font-size:21px;margin:2em 0 .8em}
.body h3{font-size:18px;margin:1.6em 0 .6em}
.body ul,.body ol{padding-left:1.4em;margin:0 0 1.3em}
.body li{margin:.25em 0}
.body a{text-decoration:underline;text-underline-offset:3px}
.body table{display:block;overflow-x:auto;border-collapse:collapse;margin:0 0 1.4em;font-size:14px;max-width:100%}
.body th,.body td{border:1px solid rgba(128,128,128,.35);padding:6px 10px;text-align:left;white-space:nowrap}
.body blockquote{margin:0 0 1.3em;padding:.6em 1em;border-left:4px solid var(--accent);opacity:.9}
.body img{height:auto;margin:1em 0}
.lead{padding:16px 20px;margin:20px 0}
.lead strong{display:block;font-size:13px;margin-bottom:4px}
.lead p{margin:0}
.cat-note{font-size:13px;opacity:.85}
.cat-note a{text-decoration:underline}
.sources{margin:28px 0 0;font-size:13px}
.sources h2{font-size:14px;margin:0 0 6px}
.sources ul{margin:0;padding-left:1.2em}
.sources a{text-decoration:underline;word-break:break-all}
.share{display:flex;gap:10px;margin:24px 0}
.share a{flex:1;max-width:220px;text-align:center;font-weight:700;font-size:14px;padding:10px 12px;color:#fff}
.share-x{background:#111}
.share-line{background:#06c755}
.ad{margin:24px 0;text-align:center;min-height:90px}
.ad-lbl{display:block;font-size:10px;opacity:.6;margin-bottom:4px}
.rank{list-style:none;margin:0;padding:0}
.rank a{display:flex;gap:10px;align-items:flex-start}
.empty{opacity:.7}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media (max-width:640px){.wrap{padding:0 14px}.body{font-size:16px}.share a{max-width:none}}
/* 文字入りの自作サムネは切り抜かない(写真だけトリミング・重ね文字を使う) */
.vis.vis-text{aspect-ratio:1200/630!important;height:auto!important;min-height:0!important}
.vis-text img{object-fit:contain}

/* 横スクロールのメニューはスクロールバーを出さない(指・ホイールでは動く) */
.bl-nav,.bs-nav,.mg-nav,.pt-tabs-in,.pt-left,.rv-nav-in,.sb-menu,.sd-nav,.tb-nav-in,.ti-nav,.wa-nav-in{scrollbar-width:none}
.bl-nav::-webkit-scrollbar,.bs-nav::-webkit-scrollbar,.mg-nav::-webkit-scrollbar,.pt-tabs-in::-webkit-scrollbar,.pt-left::-webkit-scrollbar,.rv-nav-in::-webkit-scrollbar,.sb-menu::-webkit-scrollbar,.sd-nav::-webkit-scrollbar,.tb-nav-in::-webkit-scrollbar,.ti-nav::-webkit-scrollbar,.wa-nav-in::-webkit-scrollbar{display:none}

/* 1段組みになったとき、表などの広い中身で本文の列が画面より広がらないように */
main{min-width:0}

/* ---- court ---- */
/* ---- court: バスケ。フローリングの床・コートのライン・得点板・ボックススコア ---- */
.d-court{--ct-wood1:#e7b77a;--ct-wood2:#dca56a;--ct-ink:#1b130d;--ct-orange:#ff6b1a;background:repeating-linear-gradient(90deg,var(--ct-wood1) 0 46px,var(--ct-wood2) 46px 48px,#e2b073 48px 94px,var(--ct-wood2) 94px 96px);color:var(--ct-ink);font-family:"Noto Sans JP",sans-serif}
.ct-head{background:var(--ct-ink);color:#fff;border-bottom:6px solid var(--accent)}
.ct-head-in{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:16px;padding-bottom:14px}
.ct-brand{display:flex;align-items:center;gap:14px;min-width:0}
.ct-ball{flex:none;width:48px;height:48px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ffa45c,var(--ct-orange) 55%,#c94a08);position:relative;box-shadow:inset 0 0 0 2px #3a1a05}
.ct-ball::before{content:"";position:absolute;inset:0;border-radius:50%;background:linear-gradient(90deg,transparent 47%,#3a1a05 47% 53%,transparent 53%),linear-gradient(0deg,transparent 47%,#3a1a05 47% 53%,transparent 53%)}
.ct-brand b{display:block;font-family:"Bebas Neue",sans-serif;font-weight:400;font-size:46px;line-height:.9;letter-spacing:.04em}
.ct-brand small{font-size:12px;opacity:.8}
.ct-score{flex:none;display:flex;gap:6px;background:#000;border:3px solid #444;border-radius:6px;padding:4px 8px}
.ct-score span{display:flex;flex-direction:column;align-items:center;min-width:44px}
.ct-score small{font-size:9px;letter-spacing:.15em;color:#aaa}
.ct-score b{font-family:"Orbitron",sans-serif;font-size:24px;color:#ff3b30;text-shadow:0 0 8px rgba(255,59,48,.8);line-height:1.1}
.ct-score .ct-q b{color:#ffd23f;text-shadow:0 0 8px rgba(255,210,63,.8)}
.ct-nav{background:#2a1d14}
.ct-nav-in{display:flex;overflow-x:auto;white-space:nowrap;scrollbar-width:none}
.ct-nav-in::-webkit-scrollbar{display:none}
.ct-nav a{color:#fff;font-weight:700;font-size:14px;padding:10px 16px}
.ct-nav a:first-child{font-family:"Bebas Neue",sans-serif;font-size:20px;padding-top:8px;padding-bottom:6px;color:var(--ct-orange)}
.ct-nav a:hover{background:var(--accent)}
.ct-front{padding-top:22px}
.ct-hero{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);background:#fff;border:4px solid #fff;outline:3px solid var(--accent);border-radius:4px;position:relative;overflow:hidden}
.ct-hero-t{padding:18px 22px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;position:relative}
.ct-hero-t::after{content:"";position:absolute;right:-90px;bottom:-90px;width:180px;height:180px;border:4px solid var(--accent);border-radius:50%;opacity:.35}
.ct-hero h1{font-size:clamp(20px,2.3vw,26px);font-weight:900;line-height:1.45}
.ct-hero p{margin:0;font-size:13px;opacity:.75}
.ct-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;padding-top:26px;padding-bottom:46px}
.ct-h{display:flex;align-items:baseline;gap:12px;font-family:"Bebas Neue",sans-serif;font-weight:400;font-size:36px;line-height:1;margin:30px 0 12px;color:var(--ct-ink);padding-bottom:4px;border-bottom:4px solid var(--chip,var(--accent))}
.ct-h small{font-family:"Noto Sans JP",sans-serif;font-size:13px;font-weight:700}
.ct-h a{margin-left:auto;font-family:"Noto Sans JP",sans-serif;font-size:13px;font-weight:700}
.ct-boxscore{background:#fff;border-radius:4px;padding:2px 16px 10px}
.ct-boxscore .ct-h{margin-top:12px}
.ct-boxscore table{width:100%;border-collapse:collapse;font-size:14px}
.ct-boxscore th{font-size:11px;text-align:left;background:var(--ct-ink);color:#fff;padding:5px 8px}
.ct-boxscore td{padding:8px;border-bottom:1px solid #eadfd2;vertical-align:top}
.ct-boxscore td a{font-weight:700;line-height:1.5}
.ct-boxscore td a:hover{color:var(--accent);text-decoration:underline}
.ct-boxscore tbody tr:nth-child(even){background:#fbf6f0}
.ct-no,.ct-d{font-family:"Bebas Neue",sans-serif;font-size:20px;line-height:1.1;white-space:nowrap}
.ct-no{color:var(--accent);width:30px}
.ct-c-cat{width:110px}
.ct-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ct-card{position:relative;display:block;background:#fff;border-radius:4px;overflow:hidden;padding-bottom:10px;box-shadow:0 4px 0 rgba(27,19,13,.25)}
.ct-jersey{position:absolute;z-index:2;top:0;right:12px;font-family:"Bebas Neue",sans-serif;font-size:30px;line-height:1;color:#fff;background:var(--accent);padding:8px 8px 4px;min-width:40px;text-align:center;clip-path:polygon(0 0,100% 0,100% 85%,50% 100%,0 85%)}
.ct-card h3{font-size:15px;font-weight:700;line-height:1.5;padding:10px 12px 2px}
.ct-card time{font-size:12px;opacity:.65;padding:0 12px}
.ct-card:hover h3{color:var(--accent)}
.ct-side{display:flex;flex-direction:column;gap:18px}
.ct-box{background:#fff;border-radius:4px;overflow:hidden}
.ct-box h3{font-family:"Bebas Neue",sans-serif;font-weight:400;font-size:28px;line-height:1;background:var(--ct-ink);color:var(--ct-orange);padding:10px 14px 6px}
.ct-box h3 small{font-family:"Noto Sans JP",sans-serif;font-size:12px;color:#fff;margin-left:8px}
.ct-box>ol,.ct-box>div{padding:6px 14px 12px}
.d-court .rank li+li{border-top:1px solid #eadfd2}
.d-court .rank a{padding:8px 0;font-size:14px;line-height:1.5}
.d-court .rank b{flex:none;font-family:"Bebas Neue",sans-serif;font-weight:400;font-size:28px;line-height:.9;color:var(--accent);min-width:18px}
.ct-tags{display:flex;flex-wrap:wrap;gap:6px}
.ct-tags a{font-size:13px;font-weight:700;padding:3px 10px;background:var(--ct-ink);color:#fff;border-radius:3px}
.ct-tags a:hover{background:var(--accent)}
.ct-post{background:#fff;border-radius:4px;padding:24px 28px;border-top:8px solid var(--accent)}
.ct-post h1{font-size:clamp(22px,3vw,29px);font-weight:900;line-height:1.45;margin:8px 0 4px}
.ct-meta{font-size:13px;opacity:.65;margin:4px 0 16px}
.d-court .lead{background:#fbf3ea;border-left:6px solid var(--accent)}
.d-court .lead strong{font-family:"Bebas Neue",sans-serif;font-size:20px;font-weight:400;letter-spacing:.05em;color:var(--accent)}
.d-court .body h2{padding:6px 12px;background:var(--ct-ink);color:#fff;border-left:8px solid var(--accent)}
.d-court .body th{background:var(--ct-ink);color:#fff}
.ct-foot{background:var(--ct-ink);color:#cdbba8;font-size:13px;padding:30px 0 24px;border-top:6px solid var(--accent)}
.ct-foot-brand{font-family:"Bebas Neue",sans-serif;font-size:36px;line-height:1;color:#fff;margin:0}
.ct-foot-brand small{font-family:"Noto Sans JP",sans-serif;font-size:12px;margin-left:10px;color:#cdbba8}
.ct-foot nav{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:12px}
.ct-foot a:hover{color:#fff}
.ct-foot .copy{font-size:11px;margin-top:14px}
@media (max-width:960px){.ct-layout{grid-template-columns:1fr}}
@media (max-width:760px){.ct-hero{grid-template-columns:1fr}.ct-grid{grid-template-columns:1fr}.ct-c-cat{display:none}}
@media (max-width:640px){.ct-brand b{font-size:34px}.ct-brand small{display:none}.ct-ball{width:38px;height:38px}.ct-score span{min-width:32px}.ct-score b{font-size:18px}.ct-score small{font-size:8px}.ct-h{font-size:30px}.ct-post{padding:18px 16px}}
