/* P10 キャンペーンの一覧・P11 キャンペーンの詳細（墨）。3.8。群 C の持ちもの */
@layer page {
  /* ============ P10 一覧 ============ */
  .cl-head { padding-bottom: var(--es-space-55); }
  .cl-h1 { font-size: var(--es-text-55); line-height: var(--es-lh-55); }
  /* 一覧の部品を、いちばん上の 1 つ（主ボタン・熾の点）と、それ以外の形に分けて持つ。campaigns.js が出し分ける */
  [data-voff] { display: none; }
  .cl-live { padding-bottom: var(--es-space-89); }
  .cl-feat:not([hidden]) ~ .cl-feat:not([hidden]) { margin-top: var(--es-space-89); padding-top: var(--es-space-89); border-top: var(--es-line-1) solid var(--es-rule); }
  .cl-sec { padding-bottom: var(--es-space-89); }

  /* ③ これから：行 */
  .cl-uplist { border-top: var(--es-line-1) solid var(--es-rule); }
  .cl-uplist > li { border-bottom: var(--es-line-1) solid var(--es-rule); }
  .cl-up { display: grid; grid-template-columns: 233px minmax(0, 1fr) auto; column-gap: var(--es-space-34); align-items: center; padding: var(--es-space-21) 0; color: var(--es-text-strong); }
  .cl-up__img { width: 233px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--es-surface); }
  .cl-up__body { display: flex; flex-direction: column; gap: var(--es-space-5); min-width: 0; }
  .cl-up__title { font-size: var(--es-text-21); line-height: var(--es-lh-21); font-weight: var(--es-fw-bold); }
  .cl-up__time { display: flex; flex-wrap: wrap; column-gap: var(--es-space-21); font-size: var(--es-text-16); line-height: var(--es-lh-16); color: var(--es-text); }
  .cl-up__time .num { white-space: nowrap; }
  .cl-up__game { display: flex; flex-wrap: wrap; column-gap: var(--es-space-8); font-size: var(--es-text-13); line-height: var(--es-lh-13); color: var(--es-text); }
  @media (hover: hover) and (pointer: fine) { .cl-up:hover .cl-up__title, .cl-past:hover .cl-past__title { color: var(--es-accent); } }

  /* ④ 開催中も開催前も無いとき */
  .cl-sec--none { padding-top: 0; }
  .cl-none__t { font-size: var(--es-text-26); line-height: var(--es-lh-26); font-weight: var(--es-fw-bold); color: var(--es-text-strong); }
  .cl-none__d { margin-top: var(--es-space-13); font-size: var(--es-text-16); line-height: var(--es-lh-16); color: var(--es-text); }
  .cl-none__games { margin-top: var(--es-space-89); }
  .cl-none__h { font-size: var(--es-text-26); line-height: var(--es-lh-26); margin-bottom: var(--es-space-21); }
  /* 終わったキャンペーンの絵（右の 3 列。見える候補の先頭 1 つだけ） */
  .cl-none__past > li:not([hidden]) ~ li { display: none; }
  .cl-none__past { margin-top: var(--es-space-34); }
  .cl-pastart { display: grid; gap: var(--es-space-5); color: var(--es-text); }
  .cl-pastart img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: var(--es-space-8); }
  .cl-pastart__k { font-size: var(--es-text-13); line-height: var(--es-lh-13); color: var(--es-text-sub); } /* 「前回」：終わった大会の絵だと分かる札（開催中に見せない。G-C R2 の 6） */
  .cl-pastart__t { font-size: var(--es-text-16); line-height: var(--es-lh-16); font-weight: var(--es-fw-bold); color: var(--es-text-strong); }
  .cl-pastart__p { font-size: var(--es-text-13); line-height: var(--es-lh-13); color: var(--es-text-sub); }
  @media (hover: hover) and (pointer: fine) { .cl-pastart:hover .cl-pastart__t { text-decoration: underline; text-underline-offset: 0.25em; } }
  .cl-rows { border-top: var(--es-line-1) solid var(--es-rule); margin-bottom: var(--es-space-21); }
  .cl-rows > .rcard { border-bottom: var(--es-line-1) solid var(--es-rule); }

  /* ⑤ 終わったキャンペーン：題と期間だけ */
  .cl-sec--past { margin-top: var(--es-space-55); }
  .cl-past__h { font-size: var(--es-text-21); line-height: var(--es-lh-21); margin-bottom: var(--es-space-13); }
  .cl-pastlist { border-top: var(--es-line-1) solid var(--es-rule); }
  .cl-pastlist > li { border-bottom: var(--es-line-1) solid var(--es-rule); }
  .cl-past { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "t p c" "n n n"; column-gap: var(--es-space-21); align-items: center; min-height: 55px; padding: var(--es-space-13) 0; color: var(--es-text-strong); }
  .cl-past__title { grid-area: t; font-size: var(--es-text-16); line-height: var(--es-lh-16); min-width: 0; }
  .cl-past__period { grid-area: p; font-size: var(--es-text-13); line-height: var(--es-lh-13); color: var(--es-text-sub); white-space: nowrap; }
  .cl-past > .ico { grid-area: c; color: var(--es-text-sub); }
  .cl-past__note { grid-area: n; font-size: var(--es-text-13); line-height: var(--es-lh-13); color: var(--es-text-sub); }
  @media (min-width: 987px) {
    .cl-none { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--es-gutter); }
    .cl-none > * { grid-column: 1 / span 5; }
    .cl-none > .cl-none__past { grid-column: 6 / span 3; grid-row: 1 / span 3; margin-top: 0; align-self: start; }
    .cl-pastlist, .cl-past__h { max-width: calc((100% - 7 * var(--es-gutter)) / 8 * 5 + 4 * var(--es-gutter)); }
  }
  @media (max-width: 609px) {
    .cl-h1 { font-size: var(--es-text-42); line-height: var(--es-lh-42); }
    .cl-up { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--es-space-13); }
    .cl-up__img { grid-column: 1 / -1; width: 100%; }
    .cl-up__title { font-size: var(--es-text-16); line-height: var(--es-lh-16); }
    .cl-past { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t c" "p c" "n n"; row-gap: var(--es-space-3); }
    .cl-none__t { font-size: var(--es-text-21); line-height: var(--es-lh-21); }
    .cl-none__games { margin-top: var(--es-space-55); }
    .cl-none__h { font-size: var(--es-text-21); line-height: var(--es-lh-21); }
  }

  /* ============ P11 詳細：① 看板 ============ */
  .ch { --bb-h: 520px; }
  .ch__info { position: absolute; left: max(var(--es-margin), env(safe-area-inset-left)); bottom: var(--es-space-55); width: min(720px, 56vw); display: flex; flex-direction: column; align-items: flex-start; color: var(--es-color-hakunetsu); }
  .ch__info .label { color: var(--es-color-hakunetsu); margin-bottom: var(--es-space-13); }
  .ch__title { font-size: var(--es-text-55); line-height: var(--es-lh-55); color: var(--es-color-hakunetsu); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .ch__period { margin-top: var(--es-space-13); font-size: var(--es-text-16); line-height: var(--es-lh-16); color: var(--es-color-kaihaku); }
  .ch__time { margin-top: var(--es-space-8); display: flex; align-items: baseline; flex-wrap: wrap; column-gap: var(--es-space-13); }
  .ch__k { font-size: var(--es-text-13); line-height: var(--es-lh-13); color: var(--es-color-kaihaku); }
  .ch__remain { font-size: var(--es-text-55); line-height: var(--es-lh-55); font-weight: var(--es-fw-bold); color: var(--es-color-hakunetsu); white-space: nowrap; }
  .ch__end { margin-top: var(--es-space-13); display: flex; flex-direction: column; gap: var(--es-space-3); }
  .ch__ended { font-size: var(--es-text-21); line-height: var(--es-lh-21); font-weight: var(--es-fw-bold); color: var(--es-color-hakunetsu); }
  .ch__soon { font-size: var(--es-text-16); line-height: var(--es-lh-16); color: var(--es-color-kaihaku); }
  .ch__act { margin-top: var(--es-space-21); display: flex; flex-wrap: wrap; gap: var(--es-space-13); }
  .ch__main, .ch-btn { display: contents; }
  .ch .btn--line { color: var(--es-color-hakunetsu); }
  .ch__note { color: var(--es-color-kaihaku); }

  /* ② 本文・③ 右 */
  .cd { padding-top: var(--es-space-55); padding-bottom: var(--es-space-89); row-gap: var(--es-space-55); }
  .cd-sec + .cd-sec { margin-top: var(--es-space-55); }
  .cd-h2 { font-size: var(--es-text-26); line-height: var(--es-lh-26); margin-bottom: var(--es-space-21); }
  /* 長い本文は、ふつうに流す。対応するブラウザでは文節の切れ目で折り返す（auto-phrase。Safari は未対応） */
  .cd-lead, .cd-prose { word-break: auto-phrase; line-break: strict; }
  .cd-lead { font-size: var(--es-text-16); line-height: var(--es-lh-16); max-width: var(--es-measure); }
  .cd-steps { max-width: var(--es-measure); }
  .cd-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: baseline; padding: var(--es-space-13) 0; border-bottom: var(--es-line-1) solid var(--es-rule); }
  .cd-steps li:first-child { border-top: var(--es-line-1) solid var(--es-rule); }
  .cd-steps__n { font-size: var(--es-text-21); line-height: var(--es-lh-21); font-weight: var(--es-fw-bold); color: var(--es-text-sub); }
  .c-table { overflow-x: auto; }
  .c-table table { width: 100%; border-collapse: collapse; }
  .c-table th, .c-table td { text-align: left; vertical-align: top; padding: var(--es-space-13) var(--es-space-21) var(--es-space-13) 0; border-bottom: var(--es-line-1) solid var(--es-rule); font-size: var(--es-text-16); line-height: var(--es-lh-16); }
  .c-table thead th { font-size: var(--es-text-13); line-height: var(--es-lh-13); font-weight: var(--es-fw-medium); color: var(--es-text-sub); }
  .cd-prizes { max-width: var(--es-measure); }
  .cd-prizes td:first-child { white-space: nowrap; width: 8em; }
  .cd-notes { margin-top: var(--es-space-21); max-width: var(--es-measure); display: flex; flex-direction: column; gap: var(--es-space-13); }
  .cd-notes dt { font-size: var(--es-text-13); line-height: var(--es-lh-13); color: var(--es-text-sub); }
  .cd-notes dd { margin: 0; font-size: var(--es-text-13); line-height: var(--es-lh-13); color: var(--es-text); }
  .cd-prose > ul { padding-left: 1.2em; }
  .cd-list { max-width: var(--es-measure); padding-left: 1.2em; list-style: disc; }
  .cd-list li + li { margin-top: var(--es-space-8); }

  .cd-side { display: flex; flex-direction: column; gap: var(--es-space-34); }
  .cd-k { font-size: var(--es-text-13); line-height: var(--es-lh-13); color: var(--es-text-sub); margin-bottom: var(--es-space-13); }
  .cd-game__a { display: flex; align-items: flex-end; gap: var(--es-space-21); color: var(--es-text-strong); }
  .cd-game__a img { width: 136px; aspect-ratio: 2 / 3; flex: 0 0 auto; background: var(--es-surface); }
  .cd-game__t { display: flex; flex-direction: column; gap: var(--es-space-3); min-width: 0; }
  .cd-game__name { font-size: var(--es-text-21); line-height: var(--es-lh-21); font-weight: var(--es-fw-bold); }
  .cd-game__maker { font-size: var(--es-text-13); line-height: var(--es-lh-13); color: var(--es-text-sub); }
  .cd-game .tlink { margin-top: var(--es-space-8); }
  @media (hover: hover) and (pointer: fine) { .cd-game__a:hover .cd-game__name { color: var(--es-accent); } .cd-game__a:hover img { outline: var(--es-line-2) solid var(--es-accent); outline-offset: -2px; } }
  .cd-table { border-top: var(--es-line-1) solid var(--es-rule); }
  .cd-table > div { padding: var(--es-space-13) 0; border-bottom: var(--es-line-1) solid var(--es-rule); }
  .cd-table dt { font-size: var(--es-text-13); line-height: var(--es-lh-13); color: var(--es-text-sub); }
  .cd-table dd { margin: var(--es-space-3) 0 0; font-size: var(--es-text-16); line-height: var(--es-lh-16); color: var(--es-text-strong); }
  .cd-back { padding-bottom: var(--es-space-89); }
  @media (min-width: 987px) {
    .cd-r { position: sticky; top: calc(var(--hh) + var(--es-space-34)); align-self: start; }
  }
  @media (max-width: 986px) {
    .ch { height: auto; min-height: 420px; display: flex; align-items: flex-end; }
    .ch__veil { background: linear-gradient(0deg, var(--es-color-sumi) 0%, var(--es-color-sumi) 42%, color-mix(in srgb, var(--es-color-sumi) 70%, transparent) 62%, color-mix(in srgb, var(--es-color-sumi) 0%, transparent) 88%); }
    .ch__info { position: relative; left: auto; bottom: auto; width: 100%; padding: 233px var(--es-margin) var(--es-space-34); align-items: stretch; }
    .ch__title { font-size: var(--es-text-34); line-height: var(--es-lh-34); }
    .ch__remain { font-size: var(--es-text-42); line-height: var(--es-lh-42); }
    .ch__act { flex-direction: column; gap: var(--es-space-8); }
    .ch__act .btn { width: 100%; }
    .cd-r { order: -1; }
    .cd { row-gap: var(--es-space-55); }
  }
  @media (max-width: 609px) {
    .cd-game__a img { width: 89px; }
  }
}
