/* 明るい配色「ラベンダーホワイト」(2026-11-18、ユーザーの指示)。背景は少し紫がかった白、カードは左のメニューで選んでいる項目と同じうすい紫 */
:root{
  color-scheme:light;
  --bg:#F0EAF8;        /* ページの背景 */
  --surface:#E6DCF5;   /* カード、選んでいるメニュー */
  --surface-2:#FFFFFF; /* ボタン、メニューの項目、開いたメニューの箱 */
  --border:#D5C8EA;
  --text:#2A2038;
  --muted:#5E5373;
  --purple:#5A2A9E;    /* メインの紫(少し落ち着いた濃さ) */
  --on-purple:#E9DFFA; /* 紫の上の文字(紫がかった白) */
  --purple-dark:#2B0A42;
  --purple-light:#6A35B8; /* 線やアイコンの紫(明るい背景の上) */
  --side-w:232px;      /* パソコンの左側のメニューの幅 */
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:'Noto Sans JP','Hiragino Sans',sans-serif}
main{max-width:760px;margin:0 auto;padding:20px 16px 48px;display:flex;flex-direction:column;gap:16px}
a{color:inherit;text-decoration:none}
button{font:inherit}
:focus-visible{outline:3px solid #7A45C8;outline-offset:2px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* メニューだけは濃い紫(2026-11-18、ユーザーの指示。案3)。メニューの中では色の変数を濃い色に置き換える */
.topbar{--bg:#3D2E57;--surface:#5A4680;--surface-2:#4A3A68;--border:#62507F;--text:#EEE8F7;--muted:#B5ADC6;--purple-light:#CDB3F5;color-scheme:dark}

/* ---- 上部のバナー(紫から水色へのグラデーションと、斜めの光の筋。文字は白) ---- */
.banner{position:relative;overflow:hidden;color:#fff;
  background:linear-gradient(100deg,#6A1FE0 0%,#8A47FF 28%,#5C7CFF 62%,#1FD3F0 100%)}
.banner-inner{position:relative;z-index:1;max-width:760px;margin:0 auto;padding:22px 16px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.banner-text{min-width:0}
/* ロゴ(右端)。バナーの高さを変えない大きさにする */
.banner-logo{flex:none;width:96px;height:96px;margin:-4px 0;filter:drop-shadow(0 4px 14px rgba(40,0,110,.25))}
@media (max-width:560px){.banner-logo{width:64px;height:64px;margin:0}}
.logo{margin:0;font-family:'Oswald','Noto Sans JP',sans-serif;font-weight:700;line-height:1;letter-spacing:.03em}
/* 文字は明るいグラデーション(白 → うすいラベンダー → うすい水色)と、やわらかい光 */
.logo .big{display:inline-block;font-size:clamp(40px,9vw,64px);color:#fff;
  background:linear-gradient(100deg,#FFFFFF 0%,#F1E4FF 45%,#BDF4FF 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  filter:drop-shadow(0 2px 10px rgba(40,0,110,.35))}
/* HIGHLIGHTS の下: 選んでいるリーグとシーズン(小さめ) */
.banner-sub{margin:6px 0 0;font-size:13px;font-weight:700;letter-spacing:.08em;color:#F4ECFF;text-shadow:0 1px 6px rgba(40,0,110,.35)}
/* 斜めの光の筋(飾り) */
.bolts{position:absolute;inset:0;pointer-events:none}
.bolts span{position:absolute;top:-40%;height:180%;transform:skewX(-38deg);
  background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.22),rgba(255,255,255,0))}
.bolts span:nth-child(1){right:36%;width:120px;opacity:.6}
.bolts span:nth-child(2){right:22%;width:60px}
.bolts span:nth-child(3){right:10%;width:160px;opacity:.8}
.bolts span:nth-child(4){right:-2%;width:70px}
/* ---- 節の切り替え ---- */
.week{display:flex;align-items:center;justify-content:space-between}

/* ---- 節の一覧 ---- */
/* スマホ・タブレットの幅: 節の番号を横に並べ、横にスクロールする */
.week-strip{margin:-4px -16px 0}
.strip-scroll{position:relative;display:flex;gap:6px;overflow-x:auto;padding:4px 16px 8px;scrollbar-width:thin;scroll-snap-type:x proximity}
.wk-chip{flex:none;scroll-snap-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:52px;min-height:48px;padding:4px 6px;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer}
.wk-chip b{font-family:'Oswald','Noto Sans JP',sans-serif;font-size:16px;line-height:1.1}
.wk-chip small{font-size:10px;color:var(--muted)}
.wk-chip.now{border-color:#7A55B8}
.wk-chip[aria-current="true"]{background:var(--purple);border-color:var(--purple);color:var(--on-purple)}
.wk-chip[aria-current="true"] small{color:var(--on-purple)}
/* パソコンの幅では、節の番号の横並びは使わない(上のメニューから選ぶ) */
@media (min-width:1100px){
  .week-strip{display:none}
}

/* ---- 上部のメニュー(画面の上に固定) ---- */
.topbar{position:sticky;top:0;z-index:50;background:var(--bg);border-bottom:1px solid var(--border)}
.topbar-inner{position:relative;max-width:1200px;margin:0 auto;padding:4px 16px;display:flex;align-items:center;justify-content:center;min-height:52px}
.menu-toggle{display:none;align-items:center;gap:8px;min-height:44px;padding:0 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);font-size:14px;font-weight:700;cursor:pointer}
.gnav-list,.sub{list-style:none;margin:0;padding:0}
.gnav-list{display:flex;align-items:center;gap:8px}
.gnav-list>li{position:relative}
.gnav-link{display:flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border:0;border-radius:8px;background:transparent;color:var(--text);font-size:14px;font-weight:700;cursor:pointer;white-space:nowrap}
/* メニューのアイコン(サッカーボール・歯車)。線は文字と同じ色、背景は透明 */
.nav-icon{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.nav-icon .fill{fill:currentColor}
.gnav-link .nav-label{flex:1;text-align:left}
/* リーグ名とシーズン名は「名前 │ 矢印」の2つに分かれたボタン。
   名前: 押すと今節へ。矢印: マウスを合わせる(押す)と下の段が開く */
.nav-row{display:flex;align-items:stretch;border:1px solid var(--border);border-radius:10px;background:var(--surface-2)}
.nav-row>.gnav-link,.nav-row>.sub-link{flex:1;border-radius:9px 0 0 9px}
.nav-row>.gnav-link{padding:0 12px}
.nav-row>.go:hover{background:var(--surface);color:var(--text)}
.nav-toggle{flex:none;display:flex;align-items:center;justify-content:center;min-width:34px;min-height:42px;padding:0 10px;border:0;border-left:1px solid var(--border);border-radius:0 9px 9px 0;background:transparent;color:var(--muted);cursor:pointer}
.nav-toggle:hover,.has-sub.open>.nav-row>.nav-toggle{background:var(--surface);color:var(--text)}
.has-sub.open>.nav-row{border-color:#B9A3DD}
/* ドロップダウンの中のシーズンは1つのボタン。マウスを合わせると(押しても)節の一覧が開く */
.has-sub.open>.season-toggle{background:var(--surface)}
/* 今表示しているリーグ(下線) */
.league-item.active>.nav-row,.about-item.active>.nav-row{background:var(--surface);box-shadow:inset 0 -2px 0 var(--purple-light);border-color:#B9A3DD}
.gnav-link.soon{color:#776C8C;cursor:default}
.gnav-link.soon small{font-size:10px;font-weight:700;padding:1px 6px;border-radius:999px;background:#ECE5F6;color:#5E5373}
/* 開閉の三角(下向き、右向き) */
.caret{width:0;height:0;border-top:5px solid currentColor;border-left:4px solid transparent;border-right:4px solid transparent;opacity:.7;transition:transform .15s}
.has-sub.open>.nav-row .caret:not(.side){transform:rotate(180deg)}
.caret.side{border-top:4px solid transparent;border-bottom:4px solid transparent;border-left:5px solid currentColor;border-right:0}
/* 右(下)に開く箱 */
.sub{display:none;position:absolute;top:100%;left:0;min-width:210px;padding:6px;background:var(--surface-2);border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 32px rgba(60,30,110,.15)}
.has-sub.open>.sub{display:block}
.sub .has-sub{position:relative}
.sub .sub{top:-7px;left:100%;margin-left:6px}
.sub-link{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:var(--text);font-size:14px;font-weight:700;text-align:left;cursor:pointer;white-space:nowrap}
.sub-link:hover{background:var(--surface)}
/* 節の一覧: 7節分の高さ(1行44px + すき間2px)。スクロールで第1〜38節 */
.sub-weeks{width:270px}
.weeks-list{position:relative;display:flex;flex-direction:column;gap:2px;max-height:calc(7 * 44px + 6 * 2px);overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain}
.wk-item{flex:none;display:flex;align-items:center;justify-content:space-between;gap:8px;height:44px;padding:0 10px;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--text);text-align:left;cursor:pointer}
.wk-item:hover{background:var(--surface)}
.wk-name{font-size:14px;white-space:nowrap}
.wk-tags{display:flex;align-items:center;gap:4px;flex:none}
.wk-now{font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;background:var(--surface);color:var(--purple-light)}
.wk-status{font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;white-space:nowrap}
.wk-status.all{background:#D9F2E3;color:#146B3A}
.wk-status.some{background:#FBEDC9;color:#734D00}
.wk-status.none{background:#ECE7F3;color:#5E5373}
.wk-item[aria-current="true"]{background:var(--purple);border-color:var(--purple)}
.wk-item[aria-current="true"] .wk-name{color:var(--on-purple)}

/* ---- パソコン(1024px以上): バナーは上に横いっぱい、その下の左側にメニューを縦に並べる(2026-11-18、ユーザーの指示)。
   リーグ名にマウスを合わせると右にシーズン、シーズンに合わせると右に節の一覧(index.html の sideMenu・hoverMenu と合わせる) ---- */
@media (min-width:1024px){
  body{display:grid;grid-template-columns:var(--side-w) minmax(0,1fr);grid-template-areas:"banner banner" "side main";align-items:start}
  /* 左のメニューの列を、下まで濃い紫にする */
  body{background:linear-gradient(to right,#3D2E57 var(--side-w),var(--bg) var(--side-w));min-height:100vh}
  .banner{grid-area:banner;padding-left:var(--side-w)}
  main{grid-area:main;width:100%}
  .topbar{grid-area:side;position:sticky;top:0;background:transparent;border-bottom:0}
  .topbar-inner{max-width:none;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:20px 12px}
  .gnav-list{flex-direction:column;align-items:stretch;gap:6px}
  .gnav-list>li>.gnav-link.soon{justify-content:space-between;padding:0 12px}
  /* シーズンの箱は、リーグの右に開く */
  .gnav-list>.has-sub>.sub{top:-1px;left:100%;margin-left:8px}
  /* 三角は右向き */
  .league-item .caret,.has-sub.open>.nav-row .caret:not(.side){transform:rotate(-90deg)}
  .has-sub.open>.nav-row>.gnav-link{background:var(--surface)}
  /* 今表示しているリーグは、下線ではなく左の線 */
  .league-item.active>.nav-row,.about-item.active>.nav-row{box-shadow:inset 3px 0 0 var(--purple-light)}
}
/* マウスで使うパソコンでは、リーグ名の横の矢印を出さない(2026-11-18、ユーザーの指示。名前にマウスを合わせると開く) */
@media (hover:hover) and (min-width:1024px){
  .nav-toggle{display:none}
  .nav-row>.gnav-link{border-radius:9px}
}

/* スマホ・タブレット: 「メニュー」ボタンで開き、各段は下に開く */
@media (max-width:1023px){
  .topbar-inner{justify-content:flex-start}
  .menu-toggle{display:flex}
  .gnav{display:none;position:absolute;top:100%;left:0;right:0;max-height:calc(100vh - 60px);overflow-y:auto;padding:8px 16px 16px;background:var(--bg);border-bottom:1px solid var(--border);box-shadow:0 12px 32px rgba(60,30,110,.15)}
  body.menu-open .gnav{display:block}
  .gnav-list{flex-direction:column;align-items:stretch}
  .gnav-link{width:100%;justify-content:space-between}
  .sub,.sub .sub{position:static;margin:2px 0 4px 12px;padding:4px 0 4px 8px;min-width:0;background:transparent;border:0;border-left:1px solid var(--border);border-radius:0;box-shadow:none}
  .caret.side{transform:rotate(90deg)}
  .has-sub.open>.nav-row .caret.side{transform:rotate(-90deg)}
  .sub-weeks{width:auto}
}


.week b{display:block;font-family:'Oswald','Noto Sans JP',sans-serif;font-size:24px;font-weight:700;letter-spacing:.04em;line-height:1.2;text-align:center}
.week small{display:block;font-size:12px;color:var(--muted);text-align:center}
.icon{width:44px;height:44px;border-radius:12px;border:1px solid var(--border);background:var(--surface-2);color:var(--purple-light);display:flex;align-items:center;justify-content:center;cursor:pointer}
.icon:disabled{color:#B3A9C6;cursor:default}

/* ---- キックオフ時間ごとのまとまり ---- */
.list{display:flex;flex-direction:column;gap:24px}
.slot{position:relative;display:flex;flex-direction:column;gap:10px}
/* 見出しの右に伸ばす細い線(見出しの背景の後ろに隠れ、右側だけ見える) */
.slot::before{content:"";position:absolute;top:13px;left:0;right:0;height:1px;background:#C9B8E6}
.slot h2{position:relative;align-self:flex-start;margin:0;font-family:'Oswald','Noto Sans JP',sans-serif;font-size:14px;font-weight:700;letter-spacing:.03em;color:var(--on-purple);background:var(--purple);
  padding:5px 18px 5px 12px;clip-path:polygon(0 0,100% 0,calc(100% - 10px) 100%,0 100%)}

/* ---- 試合カード ---- */
.card{display:flex;flex-direction:column;gap:12px;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:12px 16px 14px;
  box-shadow:0 1px 2px rgba(60,30,110,.06),0 4px 14px rgba(60,30,110,.08);transition:transform .15s,box-shadow .15s}
.card.unpub{background:#ECE5F7;box-shadow:none}
.card-top{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px}
/* 出場した日本人選手の名前(公開状況の左) */
.jp-players{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;margin:0;padding:0;list-style:none}
.jp-players li{font-size:13px;font-weight:700;line-height:1.4;padding:3px 12px;border-radius:999px;background:#FBEDC9;border:1px solid #FBEDC9;color:#734D00;white-space:nowrap}

/* 対戦カード。ホームは左のボタンの上、アウェイは右のボタンの上。クラブの色は3文字コードだけ */
.teams,.card-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.teams{position:relative}
.team{min-height:48px;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 30px;min-width:0}
/* 3文字コードの丸。濃い色のクラブも背景に埋もれないよう、うすい縁を付ける */
.code{flex:none;width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-family:'Oswald',sans-serif;font-weight:700;font-size:13px;letter-spacing:.03em;line-height:1;
  background:var(--c);color:var(--t);box-shadow:0 0 0 1.5px rgba(42,32,56,.22)}
/* 未公開: 押せないボタンと同じグレー */
.card.unpub .code{background:#D8CDE9;color:#6B6082;box-shadow:0 0 0 1px #C9BCDD}
.card.unpub .name{color:#6B6082}
.team.nocode{padding:0 12px}
/* J1・J2 のチームカラーの丸。明るい色のクラブも見えるよう、うすい縁を付ける。未公開のときは灰色 */
.dot{flex:none;width:16px;height:16px;border-radius:50%;background:var(--c);box-shadow:0 0 0 1.5px rgba(42,32,56,.22)}
.card.unpub .dot{background:#D8CDE9;box-shadow:0 0 0 1px #C9BCDD}
.name{font-size:16px;font-weight:700;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vs{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1;font-family:'Oswald',sans-serif;font-weight:700;font-size:14px;letter-spacing:.05em;color:var(--muted)}

/* スマホの幅では、チーム名を改行させないため、ホームとアウェイを上下に並べ、ボタンも縦に並べる */
@media (max-width:560px){
  .teams{display:flex;flex-direction:column;gap:6px}
  .team,.team.r,.team.nocode{justify-content:flex-start;padding:0;min-height:42px}
  .team.nocode{min-height:32px}
  .team.r .code{order:-1}
  .vs{display:none}
  .card-actions{display:flex;flex-direction:column}
}

.chip{font-size:13px;font-weight:700;line-height:1.4;padding:3px 12px;border-radius:999px;background:#D9F2E3;color:#146B3A}
.chip.wait{background:#D6CBE8;color:#4F4464}
.chip:not(.wait)::before{content:"";display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:#1FA35B;vertical-align:1px}
.msg{font-size:13px;color:var(--muted);line-height:1.7;margin:0}

/* ---- ボタン ---- */
.btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 12px;border-radius:12px;font-size:15px;font-weight:700;cursor:pointer;border:1px solid #CDBFE3;background:var(--surface-2);color:#3F2E63;width:100%;text-align:center}
.btn:hover{background:#F3EEFA}
.btn{transition:background-color .15s,border-color .15s}
.play-icon{flex:none}
.btn.primary{background:var(--purple);border-color:var(--purple);color:var(--on-purple)}
.btn.primary:hover{background:#6731B0}
.btn.small{min-height:44px;font-size:13px}
/* 「YouTubeアプリで開く」: うすい紫の地に紫の縁と紫の文字。左に YouTube の再生マーク。未公開のときはマークも灰色 */
.btn.yt{background:#F1E9FC;border:1.5px solid var(--purple);color:var(--purple)}
.btn.yt:hover{background:#E7DBF8}
.yt-icon{flex:none}
.btn.yt[aria-disabled="true"]{background:#DCD3E9;border:1px solid #CFC5E0;color:#6B6082}
.btn.yt[aria-disabled="true"] .yt-icon{filter:grayscale(1);opacity:.45}
.btn[aria-pressed="true"]{background:#D9CAF2;border-color:#B9A3DD;color:#4A2785;cursor:default}
.btn[aria-disabled="true"]{background:#DCD3E9;border-color:#CFC5E0;color:#6B6082;cursor:default}

/* ---- 埋め込みプレイヤー。カードの下に出し、カードより横に広げて大きく表示する ---- */
.player{align-self:flex-start;width:100%;display:flex;flex-direction:column;align-items:center;gap:10px;padding:4px 0 8px}
/* 画面の高さに収まる範囲で、できるだけ大きく(16:9) */
.frame{position:relative;width:100%;aspect-ratio:16/9;background:#000;border-radius:12px;overflow:hidden}
.frame iframe,.frame>div{position:absolute;inset:0;width:100%;height:100%;border:0}
/* 再生が始まって0.25秒たつまでの黒い幕(index.html の openPlayer)。押した操作はプレイヤーに届く */
.frame .frame-cover{background:#000;z-index:1;pointer-events:none}
/* スマホで自動再生が止められたとき、幕の真ん中に出す案内。タップは下の YouTube の再生ボタンに届く */
.frame .frame-cover.tap{display:flex;align-items:center;justify-content:center}
.frame .frame-cover.tap::after{content:"▶ タップして再生";padding:10px 20px;border-radius:999px;background:var(--purple);color:var(--on-purple);font-size:15px;font-weight:700}
.player .btn{max-width:728px}
.note{font-size:12px;color:var(--muted);line-height:1.7;margin:0;width:100%;max-width:728px}
/* 提供元の表記(小さく、目立たせない) */
.credit{margin-top:24px;padding-top:16px;border-top:1px solid #D5C8EA;font-size:11px;color:var(--muted);text-align:center;line-height:1.8}
.credit a{color:var(--purple);text-decoration:underline}
[hidden]{display:none!important}

/* ---- About のページ ---- */
.about{display:flex;flex-direction:column;gap:16px}
.about-box{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:16px 20px}
.about-box h2{margin:0 0 10px;font-size:16px;font-weight:700;color:var(--purple)}
.about-box p,.about-box li{font-size:14px;line-height:1.8;color:var(--text)}
.about-box p{margin:0 0 6px}
.about-box p:last-child{margin-bottom:0}
.about-box ul{margin:0 0 6px;padding-left:1.3em}
.about-box ul:last-child{margin-bottom:0}
.about-box a{color:var(--purple);text-decoration:underline}

/* ---- 背景のサッカーコート(うすい紫の線と芝目。2026-11-18、ユーザーの指示)。画面に固定し、ふちに向かって消える ----
   作り直しは node notes/logo/make-pitch.mjs。うすさは opacity */
body::before{content:"";position:fixed;inset:28px;z-index:-1;pointer-events:none;opacity:.13;
  background:url(pitch.svg?v=1) center/contain no-repeat;
  -webkit-mask-image:radial-gradient(ellipse at center,#000 45%,transparent 85%);mask-image:radial-gradient(ellipse at center,#000 45%,transparent 85%)}
@media (min-width:1024px){body::before{left:calc(var(--side-w) + 28px)}}
@media (max-aspect-ratio:1/1){body::before{background-image:url(pitch-tall.svg?v=1)}}

/* マウスで使うパソコン: 公開中のカードにマウスを合わせると、少し浮く */
@media (hover:hover){
  .card:not(.unpub):hover{transform:translateY(-2px);box-shadow:0 2px 4px rgba(60,30,110,.08),0 10px 24px rgba(60,30,110,.14)}
}
/* スクロールバーをサイトの紫に(Chrome・Edge・Firefox) */
html{scrollbar-color:#B9A3DD var(--bg)}

/* ---- 広告の枠(2026-11-19)。ふだんは隠す。URL に ?adpreview を付けたときだけ見本を出す(index.html の AD_PREVIEW) ---- */
.ad{display:none}
body.ads-preview .ad{display:block}
.ad-label{display:inline-block;font-size:11px;font-weight:700;line-height:1.6;color:var(--muted);border:1px solid currentColor;border-radius:4px;padding:0 6px}
/* 一覧の途中のアフィリエイト(PR)。カードと同じ幅で、白い地にして試合のカードと見分けられるようにする */
.ad-pr{background:#fff;border:1px dashed #B9A3DD;border-radius:14px;padding:14px 16px;flex-direction:column;gap:8px}
body.ads-preview .ad-pr{display:flex}
.ad-pr .ad-label{align-self:flex-start}
.ad-title{margin:0;font-size:15px;font-weight:700;color:var(--purple-dark)}
.ad-text{margin:0;font-size:13px;color:var(--muted)}
.ad-pr .btn{max-width:280px}
/* AdSense の枠(見本は点線の箱) */
.ad-slot{display:flex;align-items:center;justify-content:center;text-align:center;margin-top:6px;border:1px dashed #B9A3DD;border-radius:8px;background:rgba(255,255,255,.6);color:var(--muted);font-size:12px}
.ad-bottom{margin-top:8px}
.ad-bottom .ad-slot{min-height:100px}
/* 左のメニューの下(パソコンだけ。スマホの上のバーには出さない) */
.ad-side{margin-top:24px}
.ad-side .ad-slot{width:200px;height:200px;margin:6px auto 0;background:rgba(255,255,255,.08);border-color:var(--border)}
@media (max-width:1023px){body.ads-preview .ad-side{display:none}}
/* 幅の広いパソコンの右側(縦長。2026-11-19、ユーザーの案)。広告を出すときだけ、本文の右に列を足す。
   1280〜1599px は 160×600、1600px以上は 300×600。本文(最大760px)とバナーの文字は、残りの幅の真ん中 */
.ad-rail{grid-area:rail;position:sticky;top:20px;align-self:start;padding:20px 24px 0 0}
.ad-rail .ad-slot{width:var(--rail-w);height:600px}
@media (max-width:1279px){body.ads-preview .ad-rail{display:none}}
@media (min-width:1280px){
  body.ads-preview{--rail-w:160px;grid-template-columns:var(--side-w) minmax(0,1fr) calc(var(--rail-w) + 24px);grid-template-areas:"banner banner banner" "side main rail"}
  body.ads-preview .banner{padding-right:calc(var(--rail-w) + 24px)}
}
@media (min-width:1600px){body.ads-preview{--rail-w:300px}}

/* ---- お気に入り(☆・★)と通知(2026-11-19)。favorites.html と、カードのチーム名の横 ---- */
.fav-star{flex:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;margin:0 -4px;padding:0;border:0;border-radius:50%;background:transparent;color:#9A8BB5;cursor:pointer}
.fav-star svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.fav-star:hover{background:rgba(90,42,158,.08);color:var(--purple)}
.fav-star.on{color:#D99A00}
.fav-star.on svg{fill:#F5B800;stroke:#C98A00}
.fav-star:focus-visible{outline:2px solid var(--purple);outline-offset:1px}
.card.unpub .fav-star:not(.on){color:#A99DBE}
/* お気に入りのチームの試合のカード: 左に金色の線 */
.card.is-fav{position:relative}
.card.is-fav::before{content:"";position:absolute;left:-1px;top:12px;bottom:12px;width:4px;border-radius:0 4px 4px 0;background:#F5B800}
@media (max-width:560px){.team.r .fav-star{order:1}}

/* 「お気に入り・通知」のページ */
.push-status{font-weight:700}
.push-actions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.push-actions .btn{width:auto;padding:0 18px}
.push-actions .btn[disabled]{opacity:.6;cursor:default}
.push-msg{min-height:1.4em;font-size:13px;color:var(--purple)}
.howto-toggle{width:auto;padding:0 16px;margin-top:4px;gap:10px}
.howto-toggle[aria-expanded="true"] .caret{transform:rotate(180deg)}
.howto{margin-top:12px;display:flex;flex-direction:column;gap:12px}
.howto-dev{background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding:12px 16px}
.howto-dev.mine{border-color:var(--purple-light);box-shadow:inset 3px 0 0 var(--purple-light)}
.howto-dev h3{margin:0 0 6px;font-size:15px;color:var(--purple-dark);display:flex;align-items:center;gap:8px}
.mine-label{font-size:11px;font-weight:700;color:#fff;background:var(--purple);border-radius:999px;padding:1px 8px}
.howto-dev ol{margin:0 0 6px;padding-left:1.4em}
.about-box .note{max-width:none}
.fav-chips{margin:10px 0 12px}
.team-search{width:100%;min-height:44px;padding:0 14px;border:1px solid #CDBFE3;border-radius:12px;background:#fff;color:var(--text);font:inherit;font-size:15px}
.team-search:focus{outline:2px solid var(--purple-light);outline-offset:1px}
.team-list{list-style:none;margin:8px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:4px 12px}
.about-box .team-list li{margin:0}
.team-row{display:flex;align-items:center;gap:8px;min-height:40px;padding:0 6px;border-radius:10px;background:var(--surface-2)}
.team-row .fav-star{margin:0}
.team-row .dot{width:12px;height:12px}
.team-row-name{font-size:14px;font-weight:700;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.team-row-league{margin-left:auto;padding-right:6px;font-size:11px;color:var(--muted);white-space:nowrap}
.league-lists{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.league-toggle{justify-content:flex-start;gap:10px;padding:0 16px}
.league-toggle .league-name{flex:1;text-align:left}
.league-toggle .league-count{font-size:12px;color:#8A5A00}
.league-toggle[aria-expanded="true"] .caret{transform:rotate(180deg)}
.league-block .team-list{margin:8px 0 4px}
/* 「通知を入れる方法」の説明の写真(iPhone の画面。2026-11-19、ユーザーが用意) */
.howto-img{display:block;width:100%;max-width:320px;height:auto;margin:8px 0 10px;border-radius:12px;border:1px solid var(--border)}
