:root {
  color-scheme: light dark;
  --paper: #f7f7f2;
  --surface: #fff;
  --ink: #18211d;
  --muted: #536057;
  --line: #d7dcd2;
  --soft: #ecefe7;
  --yellow: #ffe338;
  --mark: #bc9c00;
  --alert: #a23c23;
  --focus: #1269ad;
  --num: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #141916; --surface: #1c241f; --ink: #f3f5ed; --muted: #b6c0b6; --line: #424d43; --soft: #2b352d; --mark: #ffe338; --alert: #ffa88a; --focus: #85c9ff; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.7 system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
button, select, textarea, input { font: inherit; }
button, summary, select { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { width: min(100% - 64px, 1184px); margin-inline: auto; }
.sr-only, .hp, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 2; padding: 12px; background: var(--surface); }
h1, h2, h3, p { margin-top: 0; }
h2, h3 { line-height: 1.4; }
.small, .hint, .lede, .empty, .meta, .crumbs { color: var(--muted); }
.small, .hint, .crumbs { font-size: .85rem; }
.top { background: var(--surface); border-top: 4px solid var(--yellow); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 70px; margin: 0; font-size: 1.35rem; font-weight: 900; text-decoration: none; letter-spacing: -.05em; }
.brand img { border-radius: 8px; }
.tag { padding: 1px 6px; font-size: .66rem; letter-spacing: .04em; border: 1px solid var(--line); color: var(--muted); border-radius: 3px; }
.nav { display: flex; align-items: stretch; gap: clamp(16px, 2.5vw, 38px); }
.nav a { display: grid; place-items: center; min-height: 70px; border-block: 3px solid transparent; text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 650; }
.nav a[aria-current], .nav a:hover { color: var(--ink); border-bottom-color: var(--mark); }
.home-page { padding-top: 24px; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: #18241d; color: #fff; border-radius: 12px; }
.terrace { position: absolute; z-index: -2; inset: 0; }
.terrace img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(10,21,16,.96), rgba(10,21,16,.87) 33%, rgba(10,21,16,.25) 67%, rgba(10,21,16,.06)); }
.hero-inner { padding: clamp(24px, 3.7vw, 52px); }
.hero-fixture { max-width: 760px; }
.hero-label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: .78rem; font-weight: 700; }
.hero-label > :first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--yellow); font-size: .9rem; }
.hero-label > :first-child::before { content: ""; width: 18px; height: 3px; background: currentColor; }
.ha { display: inline-block; width: fit-content; padding: 1px 7px; border: 1px solid var(--line); border-radius: 3px; font-size: .72rem; font-weight: 750; color: var(--muted); }
.ha.home { background: var(--yellow); color: #19231a; border-color: var(--yellow); }
.hero .ha { color: #fff; border-color: #97a196; }
.hero .ha.home { color: #19231a; border-color: var(--yellow); }
.hero-date { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); margin: 12px 0 10px; line-height: 1; }
.hero-date > b { font: italic 900 clamp(4.6rem, 7.6vw, 7.1rem)/.98 var(--num); letter-spacing: -.07em; }
.hero-date > span { display: grid; gap: 8px; margin-top: .55em; font-size: .86rem; }
.hero-date strong { font: 750 1.6rem/1 var(--num); }
.hero-date small { font-size: .65rem; color: #e0e7de; }
.pairing { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; margin: 0; font-size: clamp(1.15rem, 2.35vw, 2rem); letter-spacing: -.045em; }
.pairing i { color: var(--yellow); font: italic 700 .72em var(--num); }
.venue { margin: 4px 0 18px; font-size: .85rem; color: #e4e9df; }
.hero-action, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 44px; padding: 10px 16px; background: var(--yellow); color: #182019; border: 0; border-radius: 5px; font-size: .9rem; font-weight: 800; text-decoration: none; }
.hero-action:hover, .btn:hover { filter: brightness(.92); }
.btn:disabled { opacity: .65; cursor: wait; }
.home-grid { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(250px, 1fr); align-items: start; gap: clamp(24px, 3.6vw, 52px); margin-top: 36px; }
.section-head { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.section-head h2, #feedback h2 { margin: 0; font-size: clamp(1.38rem, 2.3vw, 1.8rem); letter-spacing: -.045em; }
.section-head a { font-size: .8rem; font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; min-height: 32px; }
.section-head a:hover, .links a:hover { text-decoration: underline; }
.agenda-tools { display: flex; justify-content: space-between; gap: 8px; align-items: start; flex-wrap: wrap; margin-bottom: 12px; }
.filters { display: flex; gap: 3px; flex-wrap: wrap; }
.filter { padding: 6px 12px; min-height: 44px; border: none; border-radius: 5px; font-size: .83rem; background: transparent; color: var(--muted); font-weight: 700; }
.filter:hover, .rank-menu summary:hover { background: var(--soft); }
.filter[aria-pressed="true"] { color: var(--paper); background: var(--ink); }
.rank-menu { position: relative; }
summary { font-weight: 700; }
.rank-menu > summary { display: flex; gap: 5px; align-items: center; padding: 7px 10px; min-height: 44px; border: 1px solid var(--line); border-radius: 5px; font-size: .75rem; }
.rank-menu > summary::after { content: "⌄"; }
.rank-menu[open] > summary::after { content: "⌃"; }
.rank-menu > summary::-webkit-details-marker { display: none; }
.rank-menu .tier-picker { position: absolute; z-index: 1; right: 0; top: calc(100% + 5px); width: min(340px, 86vw); background: var(--surface); border: 1px solid var(--line); padding: 16px; border-radius: 8px; box-shadow: 0 8px 24px #12231524; }
.tier-picker { margin: 0; padding: 0; border: 0; min-width: 0; }
.tier-picker legend { padding: 0; font-size: .95rem; font-weight: 700; }
.rank-menu legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.upcoming, .sales, .sched, .tentative { list-style: none; margin: 0; padding: 0; }
.upcoming { border-top: 2px solid var(--ink); }
.up { border-bottom: 1px solid var(--line); }
.agenda-link { display: grid; grid-template-columns: 82px minmax(0, 1fr) 10px; gap: 16px; padding: 16px 8px 16px 2px; align-items: center; text-decoration: none; }
.agenda-link:hover { background: var(--soft); }
.agenda-date { display: grid; align-content: center; gap: 3px; border-right: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.agenda-date b { font: 800 1.65rem/1 var(--num); letter-spacing: -.06em; }
.agenda-date > span { font-size: .73rem; color: var(--muted); font-weight: 600; }
.agenda-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; margin-bottom: 4px; }
.category, .badge { display: inline-block; padding: 1px 7px; width: fit-content; border-radius: 3px; font-size: .68rem; font-weight: 750; background: var(--soft); }
.cat-match, .b-match { background: #d8e9dc; color: #24432e; }
.cat-ticket, .b-ticket { background: #ffe796; color: #543d00; }
.cat-goods, .b-goods { background: #e6dcf0; color: #523d66; }
.cat-event, .b-event { background: #f7dece; color: #673b24; }
.up-left { font-size: .72rem; color: var(--muted); }
.soon { color: var(--alert); font-weight: 700; }
.agenda-copy strong { display: block; font-size: .96rem; line-height: 1.55; overflow-wrap: anywhere; }
.chevron { width: 7px; height: 7px; border: solid var(--muted); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.more, .link-btn { font-size: .85rem; min-height: 44px; background: transparent; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); }
.more { margin-top: 12px; width: 100%; }
.more:hover, .link-btn:hover { background: var(--soft); }
.empty { margin: 15px 0; font-size: .9rem; }
.sidebar { display: grid; gap: 22px; }
.cta { color: #19221b; background: var(--yellow); border-radius: 9px; overflow: hidden; }
.pass-top, .cta > h2, .cta > p { margin-inline: 24px; }
.pass-top { display: flex; align-items: center; gap: 10px; padding: 22px 0 16px; font: 800 .72rem var(--num); letter-spacing: .14em; }
.cal-icon { position: relative; display: inline-block; width: 24px; height: 23px; border: 2px solid; border-radius: 3px; background: linear-gradient(currentColor,currentColor) 0 5px/100% 2px no-repeat; }
.cal-icon::before, .cal-icon::after { content: ""; position: absolute; top: -5px; width: 2px; height: 6px; background: currentColor; }
.cal-icon::before { left: 4px; } .cal-icon::after { right: 4px; }
.cta > h2 { margin-block: 0 6px; font-size: 1.45rem; letter-spacing: -.055em; }
.cta > p { margin-block: 0 20px; font-size: .86rem; line-height: 1.8; }
.pass-end { position: relative; padding: 16px 24px 20px; border-top: 1px dashed #786f25; }
.pass-end::before, .pass-end::after { content: ""; position: absolute; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); }
.pass-end::before { left: -6px; } .pass-end::after { right: -6px; }
.pass-end .btn { width: 100%; background: #1a231d; color: #fff; justify-content: space-between; }
.news { padding: 20px 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.news h2 { font-size: 1rem; margin-bottom: 8px; }
.announce { font-size: .87rem; color: var(--muted); }
.news .announce { margin: 0; }
.announce a { display: block; width: fit-content; color: var(--ink); font-weight: 600; margin-top: 6px; }
.match-section, #feedback { margin-top: 52px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 14px; align-items: start; }
.match, .device { padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.match h3 { margin: 8px 0 4px; font-size: 1.12rem; }
.match h3 a, .detail-link { text-decoration: none; }
.when { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0; font-weight: 750; font-variant-numeric: tabular-nums; }
.meta, .note { font-size: .85rem; }
.sale-panel { margin: 12px 0; font-size: .85rem; }
.sale-panel summary { padding-block: 6px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 0; font-size: .85rem; font-weight: 700; }
.more-link { font-size: .9rem; }
#feedback { max-width: 720px; padding-top: 20px; border-top: 2px solid var(--ink); }
#feedback > p { margin-top: 8px; }
form, form label, .feed span { display: grid; gap: 5px; }
form { gap: 16px; } form label { font-size: .85rem; font-weight: 700; }
select, textarea, input:not([type]) { width: 100%; padding: 10px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
form .btn { justify-self: start; min-width: 110px; }
.status:empty { display: none; }
.foot { margin-top: 56px; padding: 26px 0; background: var(--soft); border-top: 1px solid var(--line); }
.foot p { margin-bottom: 6px; }
.inner-page { max-width: 840px; padding-top: 26px; }
.page-h, .detail-head h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.3; letter-spacing: -.055em; margin: 8px 0 12px; }
.inner-page section > h2 { margin: 28px 0 12px; font-size: 1.22rem; }
.inner-page > .announce { padding: 14px 18px; border-left: 4px solid var(--yellow); background: var(--surface); }
.inner-page .cta { max-width: 460px; margin-top: 28px; }
.lede { max-width: 66ch; }
.crumbs { margin: 0 0 18px; }
.detail-head { border-top: 3px solid var(--ink); padding: 20px 0 8px; }
.kind, .detail-when { font-weight: 700; margin-bottom: 6px; }
.kind, .countdown { font-size: .87rem; }
.buy-main { display: flex; width: fit-content; flex-wrap: wrap; }
.buy-main small { font-weight: 500; }
.note { margin-top: 12px; }
.chips, .feeds { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.chip, .feed { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; cursor: pointer; font-size: .84rem; }
.chip:has(:checked), .feed:has(:checked) { border-color: var(--mark); box-shadow: inset 0 0 0 1px var(--mark); background: var(--soft); }
.chip:focus-within, .feed:focus-within { outline: 2px solid var(--focus); }
.chip input, .feed input { accent-color: var(--ink); }
.chip small, .feed small { display: block; color: var(--muted); font-size: .73rem; }
.hint { margin: 10px 0 0; }
.sales { display: grid; gap: 4px; }
.sale { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 10px; padding: 8px; border-bottom: 1px solid var(--line); font-size: .86rem; }
.sale .stage, .sale time { font-weight: 700; }
.sale .who, .sale.other { color: var(--muted); }
.sale.mine { background: var(--yellow); color: #1a231c; }
.sale.mine .who { color: #384139; }
.sale.open .at::after { content: "発売開始済"; font-size: .7rem; margin-left: 6px; font-weight: 500; }
.facts, .support, .url-box { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; }
.facts dd { margin: 0; font-weight: 600; }
.support, .neighbors { margin-top: 20px; }
.neighbors { display: flex; justify-content: space-between; gap: 16px; font-size: .85rem; }
.sched, .tentative { border-top: 2px solid var(--ink); }
.tentative li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sched li.past { color: var(--muted); }
.s-when, .t-when { font-weight: 700; font-variant-numeric: tabular-nums; }
.s-badges { display: flex; gap: 5px; align-items: center; }
.s-what { display: grid; }
.tentative .small { flex-basis: 100%; }
.howto { display: grid; gap: 8px; }
.device { padding: 0 16px; }
.device summary { padding: 12px 0; }
.device summary small { display: inline-block; margin-left: 6px; font-size: .75rem; color: var(--muted); }
.device > :last-child:not(summary) { margin-bottom: 16px; }
.device .btn + p { margin-top: 12px; }
.device p, .steps, .faq dd, .about li { font-size: .9rem; }
.steps, .about ul { padding-left: 1.3em; }
.url-box { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.url-box code { overflow-wrap: anywhere; }
.faq dt { font-weight: 700; margin: 14px 0 0; }
.faq dd { margin: 0; color: var(--muted); }
/* 次戦と、申し込みの締切を一組の観戦チケットとして表示する。 */
.matchday { display: grid; }
.matchday:has(.deadline-stub:not([hidden])) { grid-template-columns: minmax(0, 2.4fr) minmax(245px, 1fr); }
.matchday:has(.deadline-stub:not([hidden])) .hero { border-radius: 12px 0 0 12px; }
.deadline-stub { position: relative; color: #222a20; background: #ffdf3f; border-radius: 0 12px 12px 0; border-left: 2px dashed #8a792b; }
.deadline-stub::before, .deadline-stub::after { content: ""; position: absolute; left: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); pointer-events: none; }
.deadline-stub::before { top: -8px; } .deadline-stub::after { bottom: -8px; }
.stub-link { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: start; padding: clamp(20px, 2.8vw, 42px); color: inherit; text-decoration: none; }
.stub-link:focus-visible { outline-offset: -5px; }
.stub-caption { display: flex; gap: 8px; align-items: center; font-size: .85rem; font-weight: 800; }
.stub-caption::before { content: ""; width: 11px; height: 11px; border: 1.5px solid; border-radius: 50%; background: linear-gradient(currentColor,currentColor) 50% 27% / 1.5px 4px no-repeat, linear-gradient(currentColor,currentColor) 66% 60% / 3px 1.5px no-repeat; }
.stub-link time { display: flex; flex-wrap: wrap; align-items: baseline; margin: 12px 0 6px; font-size: .87rem; font-weight: 700; }
.stub-link time b { font: 850 clamp(2.2rem,3.8vw,3.6rem)/1.04 var(--num); letter-spacing: -.06em; }
.stub-link strong { font-size: clamp(1.05rem,1.6vw,1.4rem); line-height: 1.55; overflow-wrap: anywhere; }
.stub-action { display: flex; justify-content: space-between; width: 100%; margin-top: 20px; padding-top: 12px; border-top: 1px solid #776a2b; font-size: .86rem; font-weight: 700; }
.stub-link:hover .stub-action { text-decoration: underline; }
.sidebar .cta { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.sidebar .pass-end { border-color: var(--line); }
.sidebar .pass-end .btn { background: var(--ink); color: var(--surface); }
.sidebar .cal-icon { color: var(--ink); }
.result-count { font-size: .78rem; margin: 6px 0 8px; color: var(--muted); font-variant-numeric: tabular-nums; }
.result-count:empty, .copy-status:empty { display: none; }
.fixture-line { display: block; font-size: .77rem; color: var(--muted); }
.month-index { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 20px 30px; }
.month-index a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 5px; text-decoration: none; font-size: .88rem; font-weight: 650; }
.month-index a:hover, .sched-row:hover { background: var(--soft); }
.sched-row { display: grid; grid-template-columns: 130px 104px minmax(0,1fr) 8px; gap: 12px; align-items: center; min-height: 56px; padding: 12px 6px; border-bottom: 1px solid var(--line); text-decoration: none; }
.sched-row:hover strong { text-decoration: underline; }
.sched-row strong { line-height: 1.5; }
.detail-head { background: var(--soft); border: none; border-inline-start: 5px solid var(--yellow); border-radius: 0 8px 8px 0; padding: clamp(16px,3vw,28px); margin-block: 12px 20px; }
.detail-head .countdown { margin: 8px 0 0; }
.versus { color: var(--muted); font: italic 700 .62em var(--num); }
.ticket-desk { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: clamp(16px,2.5vw,24px); }
.inner-page .ticket-desk > h2 { margin: 0 0 16px; }
.ticket-desk legend { margin-bottom: 8px; }
.sale-choice { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); }
.sale-choice p, .feed-selection, .copy-status { font-size: .88rem; }
.sale-choice p { margin: 0 0 8px; font-weight: 700; }
.feed-selection { color: var(--muted); }
.feed-selection strong { margin-left: 8px; color: var(--ink); }
.feed, .chip { border-color: var(--muted); }
.field-error { color: var(--alert); }
textarea[aria-invalid="true"] { border: 2px solid var(--alert); }
.foot a, .links a, .crumbs a { display: inline-flex; align-items: center; min-height: 32px; }
@media (max-width: 800px) {
  .matchday:has(.deadline-stub:not([hidden])) { grid-template-columns: minmax(0,1fr); }
  .matchday:has(.deadline-stub:not([hidden])) .hero { border-radius: 10px 10px 0 0; }
  .deadline-stub { border-radius: 0 0 10px 10px; border-left: 0; border-top: 1px dashed #8a792b; }
  .deadline-stub::before, .deadline-stub::after { top: -6px; width: 12px; height: 12px; }
  .deadline-stub::before { left: -6px; } .deadline-stub::after { left: auto; right: -6px; }
  .stub-link { display: grid; grid-template-columns: auto minmax(0,1fr) 16px; gap: 4px 10px; padding: 12px 18px; }
  .stub-caption, .stub-link time { font-size: .77rem; margin: 0; align-self: center; }
  .stub-link time b { font-size: 1.05rem; }
  .stub-link strong { grid-column: 1/3; font-size: .92rem; }
  .stub-action { grid-column: 3; grid-row: 1/3; align-self: center; width: auto; border: 0; margin: 0; padding: 0; font-size: 0; }
  .stub-action span { font-size: 1rem; }
}
@media (max-width: 620px) {
  .sched-row { grid-template-columns: minmax(0,1fr) auto 8px; gap: 5px 8px; }
  .sched-row .s-what { grid-row: 2; grid-column: 1/3; }
  .sched-row .chevron { grid-row: 1/3; grid-column: 3; }
  .chip, .feed, .filter { font-size: .88rem; }
  .detail-when { font-size: .93rem; }
  .sale-choice .btn { width: 100%; display: grid; gap: 0; }
  .foot a, .links a, .crumbs a { min-height: 44px; }
}

@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .home-grid { grid-template-columns: minmax(0,1fr); }
  .sidebar { grid-template-columns: 1fr 1fr; align-items: start; }
  .agenda-tools { justify-content: start; }
  .rank-menu .tier-picker { position: static; margin-top: 8px; width: 100%; box-shadow: none; }
  .rank-menu[open] { width: 100%; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .top .wrap { flex-direction: column; align-items: stretch; gap: 0; }
  .brand { align-self: start; min-height: 54px; font-size: 1.16rem; }
  .brand img { width: 30px; height: 30px; }
  .nav { gap: 0; justify-content: space-between; }
  .nav a { min-height: 44px; padding-inline: 4px; font-size: .8rem; }
  .home-page { padding-top: 14px; }
  .hero-inner { padding: 23px 18px; }
  .hero::before { background: linear-gradient(90deg, #0b1710ef, #0a1710c4 60%, #0a17106b); }
  .hero-label { gap: 6px; font-size: .7rem; }
  .hero-date { margin-block: 14px 12px; }
  .pairing { font-size: 1.18rem; gap: 2px 6px; }
  .hero-action { font-size: .84rem; }
  .home-grid { gap: 24px; margin-top: 24px; }
  .section-head { margin-bottom: 8px; }
  .agenda-tools { gap: 4px; }
  .filter { min-height: 44px; padding-inline: 10px; }
  .rank-menu > summary { min-height: 44px; }
  .agenda-link { grid-template-columns: 63px minmax(0, 1fr) 6px; gap: 10px; padding-block: 14px; }
  .agenda-date b { font-size: 1.42rem; }
  .agenda-date > span { font-size: .7rem; }
  .agenda-copy strong { font-size: .9rem; }
  .sidebar, .howto, .feeds { grid-template-columns: minmax(0,1fr); }
  .match-section, #feedback { margin-top: 32px; }
  .s-what { width: 100%; }
}

/* 大会・ホーム/アウェイ・販売段階のタグ（色に頼らず文字でも読める。ダーク表示でも同じ色） */
.tags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.comp, .stage { display: inline-block; width: fit-content; padding: 1px 7px; border-radius: 3px; border: 1px solid transparent; font-size: .72rem; font-weight: 800; line-height: 1.6; letter-spacing: .02em; white-space: nowrap; }
.comp { color: #fff; }
.comp.c-j1 { background: #1f6b3f; }
.comp.c-emperor { background: #1d4687; }
.comp.c-levain { background: #a12a33; }
.comp.c-acle { background: #5d3c91; }
.comp.c-other { background: #5d665f; }
.stage.s-1 { background: #18211d; color: #ffe338; border-color: #18211d; }
.stage.s-2 { background: #3e4c43; color: #fff; border-color: #3e4c43; }
.stage.s-3 { background: #6c776e; color: #fff; border-color: #6c776e; }
.stage.s-other { background: #6c776e; color: #fff; }
.stage.s-lottery { background: var(--surface); color: var(--ink); border: 1px dashed var(--ink); }
.stage.s-general { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.sale { align-items: center; }
.sale .at time { font-size: 1rem; font-variant-numeric: tabular-nums; }
.sale .at { font-weight: 700; }
.sale .who { flex-basis: 100%; font-size: .8rem; }
.kind { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
@media (prefers-color-scheme: dark) {
  .stage.s-1 { border-color: #ffe338; }
  .stage.s-2, .stage.s-3, .stage.s-other, .comp { border-color: rgba(255,255,255,.55); }
}

/* クラブのエンブレム（透過 PNG。暗い背景にも明るい背景にもそのまま置ける） */
.emblem { display: inline-block; flex: none; object-fit: contain; vertical-align: middle; }
.pairing { align-items: center; }
.pairing .side { display: inline-flex; align-items: center; gap: 10px; }
.pairing .emblem { width: 44px; height: 44px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.match h3 a { display: inline-flex; align-items: center; gap: 10px; }
.agenda-copy strong .emblem, .sched-row strong .emblem, .t-what .emblem { margin: -3px 7px 0 0; }
.faceoff { display: flex; align-items: center; gap: 14px; margin: 4px 0 6px; }
.faceoff span { color: var(--muted); font: italic 700 1rem var(--num); }
@media (max-width: 620px) {
  .pairing .side { gap: 7px; }
  .pairing .emblem { width: 32px; height: 32px; }
  .faceoff .emblem { width: 46px; height: 46px; }
}

/* 公式が発表した販売状況（完売・完売見込み） */
.avail { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: .72rem; font-weight: 800; line-height: 1.6; white-space: nowrap; color: #fff; background: #b3261e; border: 1px solid #b3261e; }
.avail.a-sold-out-expected { color: #8a1c15; background: #fff; }
.avail-note { margin: 0 0 20px; padding: 14px 16px; border: 1px solid #b3261e; border-left-width: 5px; border-radius: 0 6px 6px 0; background: var(--surface); }
.avail-note p { margin: 0; font-size: .9rem; }
.avail-note b { color: #b3261e; margin-right: 4px; }
.avail-note .links { margin-top: 6px; }
@media (prefers-color-scheme: dark) {
  .avail.a-sold-out-expected { color: #ffb4a8; background: transparent; border-color: #ffb4a8; }
  .avail-note { border-color: #ffb4a8; }
  .avail-note b { color: #ffb4a8; }
}

/* 予定を1件だけカレンダーに入れる */
.add-one { position: relative; font-size: .78rem; }
.add-one > summary { display: inline-flex; align-items: center; min-height: 32px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 700; list-style: none; white-space: nowrap; }
.add-one > summary::-webkit-details-marker { display: none; }
.add-one > summary:hover, .add-one[open] > summary { background: var(--soft); border-color: var(--muted); }
.add-menu { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.add-menu a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border-radius: 5px; background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; }
.add-menu a:hover { filter: brightness(1.15); }
.sale .add-one { margin-left: auto; }
.sale .add-one[open] { flex-basis: 100%; margin-left: 0; }
.sale.open .add-one { display: none; }
.sale.mine .add-one > summary { border-color: #6d6417; }
.add-row { margin: 10px 0 0; }
@media (max-width: 620px) {
  .add-one > summary, .add-menu a { min-height: 44px; }
  .add-menu a { flex: 1 1 140px; justify-content: center; }
}
/* 発売が全部始まった試合では「＋カレンダー」の説明も出さない */
section:not(:has(.sale:not(.open) .add-one)) > .add-hint { display: none; }
