/* 裏目競馬編集室 / JRA-reference color system. Independent editorial brand. */
:root{--brand-primary:#007853;--brand-deep:#004c2c;--brand-soft:#def2ed;--brand-surface:#f2f7f4;--brand-white:#ffffff;--brand-text:#26332d;--brand-muted:#596a61;--brand-border:#ccd9d2;--brand-link:#0155ad;--brand-warning:#8a5b00;--brand-warning-bg:#fff4d6;--brand-danger:#b42332;--brand-focus:#ffd75a;--chart-1:#007853;--chart-2:#1565b8;--chart-3:#9a6400;--chart-4:#7b4da5;--chart-5:#00818a;--chart-6:#bb4456;--chart-7:#536779;--chart-8:#ba5a13;--chart-9:#8c9891;--paper:var(--brand-white);--ink:var(--brand-text);--green:var(--brand-primary);--orange:#936000;--line:var(--brand-border)}
body{background:var(--brand-white);color:var(--brand-text)}header{background:var(--brand-primary);border-top:6px solid var(--brand-deep);border-bottom:0;color:white;min-height:88px;height:auto;padding-top:16px;padding-bottom:16px}header .brand,header nav a{color:white}header nav a{padding:6px 0;border-bottom:2px solid transparent;font-weight:600}header nav a:hover{border-bottom-color:white}header .small{background:transparent;color:white;border-color:#b5dcc9}header .small:hover{background:var(--brand-deep)}header nav{gap:22px}header .brand span{font-weight:600}a:hover{text-decoration:underline;text-underline-offset:4px}.brand:hover,.primary:hover{text-decoration:none}.notice{background:var(--brand-surface);border-bottom:1px solid var(--brand-border);color:var(--brand-muted)}.primary,.prepCard button,.download,.statsButtons button{background:var(--brand-primary);color:white;border-radius:3px}.primary:hover,.prepCard button:hover,.download:hover,.statsButtons button:hover{background:var(--brand-deep)}.small{border-radius:3px}.heroArt{background:var(--brand-deep)}.hero .sub,.sectionHead p,.sub{color:var(--brand-muted)}.hero .actions>a:not(.primary),.textButton,.policy a,.article .tag,.sources a,.reading a,.lastCall .actions>a:not(.primary),.raceBanner a,.welcomeStrip a,.chartCard a.link,.recordLink,.sourceDetails a,td a{color:var(--brand-link)}.ticker{background:var(--brand-deep);color:white}.raceBanner{background:var(--brand-soft);border-left-color:var(--brand-primary);border-radius:0 4px 4px 0}.welcomeStrip{color:var(--brand-text)}.article,.person,.prepCard,.chartCard{background:var(--brand-white);border-color:var(--brand-border)}.article:hover,.prepCard:hover{border-color:var(--brand-primary)}.filters button,.statsNav a{background:var(--brand-white);color:var(--brand-link);border-color:var(--brand-border);border-radius:3px}.filters .active,.statsNav a.active{background:var(--brand-primary);color:white;border-color:var(--brand-primary)}.filtersGrid{background:var(--brand-surface);border:1px solid var(--brand-border);border-top:3px solid var(--brand-primary)}.filtersGrid input,.filtersGrid select,.chartTools select,.recordHeading input{background:white;border-color:#b9cec1;color:var(--brand-text);border-radius:3px}.statsNav a:hover{border-color:var(--brand-primary)}.feature,.choose,.raceHero{background:var(--brand-primary);color:white}.feature h2,.choose h2,.raceHero h1{color:white}.feature .eyebrow,.feature .sub,.feature p,.choose>.eyebrow,.choose p,.choiceResult p,.raceHero p{color:#e5f4ed}.feature .reportGrid b{color:white}.feature .reportGrid>div{border-color:#8ec8b0}.choiceResult a{color:white}.choiceButtons button{border-radius:3px}.choiceButtons button[aria-pressed=true]{background:white;color:var(--brand-deep)}.letter{background:white;box-shadow:7px 7px 0 var(--brand-soft);border-top:4px solid var(--brand-primary)}.boundaries{background:var(--brand-surface)}.week label,.rhythmList b{color:var(--brand-primary)}.pending{color:var(--brand-warning)}.memo,.noteUnlinked{background:var(--brand-surface);border-left:3px solid var(--brand-primary)}.refreshStatus,.stamp{background:var(--brand-warning-bg);color:var(--brand-warning)}dialog{background:white;border-top:5px solid var(--brand-primary)}dialog::backdrop{background:#092c20aa}footer{background:var(--brand-deep);color:white}footer a,footer small{color:white}summary{color:var(--brand-text)}summary:hover{color:var(--brand-link)}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--brand-link);outline-offset:3px}header :focus-visible,.feature :focus-visible,.choose :focus-visible,.raceHero :focus-visible{outline-color:var(--brand-focus)}.chartMark:focus{outline:none;stroke:var(--brand-deep);stroke-width:4}.recordHeading{align-items:flex-start}.statsMain .notice{border-left:3px solid var(--brand-primary);padding:10px 14px}.brandSignature{font-size:11px;color:var(--brand-muted);margin-top:18px}.chartCard .empty{background:var(--brand-surface)}
@media(max-width:600px){header{padding-top:14px;padding-bottom:14px;gap:14px}header nav{gap:10px 18px;justify-content:flex-start;font-size:12px}.recordHeading{flex-direction:column}.raceHero h1{font-size:clamp(30px,8vw,43px);line-height:1.4}}
