:root {
  --contest-primary: #252525;
  --contest-secondary: #0050a9;
  --contest-danger: #cc0000;
  --contest-light-blue: #ebf4f9;
  --contest-blue: #17c0d4;
  --contest-gray: #dedede;
  --contest-light: #f4f4f4;
  --contest-white: #fff
}

.contest-browser {
  width: calc(100% - 3rem);
  max-width: none;
  margin: 0 auto;
  font-size: 1.6rem
}

.contest-browser label,
.contest-browser select,
.contest-browser button,
.contest-browser p,
.contest-browser strong,
.contest-modal,
.contest-modal button,
.contest-modal p {
  font-size: 1.6rem;
}

.contest-browser button,
.contest-browser button:visited,
.contest-modal button,
.contest-modal button:visited {
  color: #fff !important;
}

.contest-browser__intro {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--contest-gray)
}

.contest-kicker {
  margin: 0;
  color: var(--contest-primary);
  font-size: 1rem;
  letter-spacing: .14em
}

.contest-browser h1 {
  margin: .5rem 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.15
}

.ex-contest-vote-page .entry-title {
  text-align: center
}

.contest-browser__intro p:last-child {
  color: var(--contest-primary)
}

.contest-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  padding: 1.5rem 0
}

.contest-toolbar form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem
}

.contest-toolbar .contest-category-filter {
  flex: 0 0 100%
}

.contest-category-filter__group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0
}

.contest-category-filter__group legend {
  margin-bottom: .5rem;
  color: var(--secondary);
  font-size: 1.25rem;
  font-weight: bold
}

.contest-category-filter__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem
}

.contest-category-filter__buttons button {
  padding: .65rem 1rem;
  border: 2px solid var(--contest-secondary);
  border-radius: .25rem;
  background: var(--contest-secondary);
  line-height: 1.4;
  cursor: pointer
}

.contest-category-filter__buttons button[aria-pressed="true"] {
  border-color: var(--contest-primary);
  background: var(--contest-primary);
}

.contest-category-filter__buttons button:hover {
  background: var(--contest-primary)
}

.contest-category-filter__buttons button:focus-visible {
  outline: 3px solid var(--contest-secondary);
  outline-offset: 3px
}

.contest-toolbar label, .contest-entry-form label {
  display: grid;
  gap: .3rem;
  color: var(--secondary);
  font-size: 1.25rem;
  font-weight: bold;
}

.contest-toolbar select {
  min-width: 9rem;
  padding-right: 3rem;
  appearance: none;
  background-image: none
}

.contest-toolbar label {
  position: relative
}

.contest-toolbar label::after {
  content: "▼";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  font-size: 1rem;
  line-height: 1;
  pointer-events: none
}

.contest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem
}

.contest-card {
  display: flex;
  min-width: 0;
  flex-direction: column
}

.contest-card__open {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  padding: 0;
  color: var(--contest-primary);
  background: var(--contest-white);
  text-align: left;
  border: 1px solid var(--contest-gray);
  border-radius: 4px;
  overflow: hidden
}

.contest-card__open,
.contest-card__open:visited,
.contest-card__open strong,
.contest-modal h2 {
  color: var(--contest-primary) !important;
}

.contest-card__open:hover {
  background: var(--contest-light-blue)
}

.contest-card__image {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--contest-light)
}

.contest-card__image img,
.contest-card__placeholder,
.contest-card__video-placeholder {
  position: absolute !important;
  inset: 0;
}

.contest-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center
}

.contest-card__placeholder {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--contest-primary);
  font-size: 1rem
}

.contest-card__video-placeholder {
  position: relative;
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--contest-white);
  background: var(--contest-primary);
  text-align: center;
  font-size: 1.25rem
}

.contest-card__video-placeholder.has-thumbnail {
  display: block;
  overflow: hidden;
}

.contest-card__video-badge {
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  padding: .25rem .5rem;
  border-radius: .25rem;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-size: .875rem;
}

.contest-card__body {
  display: grid;
  flex: 1;
  align-content: start;
  gap: .25rem;
  padding: 1rem
}

.contest-card__category {
  color: var(--contest-secondary);
  font-size: 1.25rem
}

.contest-card__products {
  background: var(--contest-light);
  color: var(--contest-primary);
  font-size: 1rem;
  overflow-wrap: anywhere;
  padding: 0.25rem 0.5rem;
}

.contest-card__branch {
  color: var(--contest-primary);
  font-size: 1rem
}

.contest-card__votes {
  color: var(--contest-primary);
  font-size: 1rem
}

.contest-vote {
  width: 100%;
  margin-top: .5rem
}

.contest-vote.is-voted {
  background: var(--contest-primary)
}

.contest-modal[hidden] {
  display: none
}

.contest-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 4rem 1rem
}

.contest-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 28, .8)
}

.contest-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 56rem);
  padding: 1rem;
  background: var(--contest-white);
  max-height: calc(100vh - 8rem);
  overflow: visible
}

.contest-modal__close {
  position: absolute;
  right: .5rem;
  top: .5rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  font-size: 1.5rem
}

.contest-modal__gallery {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--contest-primary)
}

.contest-modal__gallery img,
.contest-modal__gallery video {
  width: 100%;
  height: min(55vh, 32rem);
  object-fit: contain
}

.contest-modal__gallery button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: .25rem .75rem;
  font-size: 2rem;
  background: rgba(0, 0, 0, .55)
}

[data-gallery-prev] {
  left: .5rem
}

[data-gallery-next] {
  right: .5rem
}

.contest-modal h2 {
  margin: .75rem 0 0
}

.contest-modal p {
  margin: .5rem 0 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  overflow-y: auto;
  max-height: 10rem
}

.contest-entry-form {
  max-width: 42rem;
  display: grid;
  gap: 1rem;
  padding: 2rem;
  border: 0;
  background: var(--contest-light);
  font-size: 1rem
}

.contest-entry-form input,
.contest-entry-form select,
.contest-entry-form textarea,
.contest-entry-form button,
.contest-toolbar select,
.contest-toolbar button,
.contest-vote {
  font-size: 1.25rem
}

.contest-entry-form>label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: .35rem
}

.contest-entry-form>label>input,
.contest-entry-form>label>select,
.contest-entry-form>label>textarea,
.contest-entry-form>label>span[id] {
  flex: 0 0 100%;
  width: 100%;
  margin-top: .3rem
}

.contest-entry-form>label>button {
  order: 4;
  margin-top: .5rem
}

.contest-entry-form>label>.required-mark {
  order: 2;
  margin: 0;
}

.contest-entry-form>label>input,
.contest-entry-form>label>select,
.contest-entry-form>label>textarea,
.contest-entry-form>label>span[id] {
  order: 3
}

.contest-entry-form h2 {
  margin: 0
}

.required-mark {
  display: inline-block;
  background: var(--contest-danger);
  border-radius: 0.25rem;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  margin-left: .25rem;
}

.contest-terms__text .contest-terms__highlight {
  color: var(--contest-danger);
}

.contest-form-error {
  margin: 0;
  padding: .75rem 1rem;
  color: var(--contest-danger);
  background: var(--contest-white);
  border: 1px solid var(--contest-danger)
}

.contest-form-section>.contest-form-error {
  margin-bottom: 1.5rem
}

.contest-form-note {
  margin: .5rem 0 0;
  font-size: 1rem
}

#ex-contest-reform-note {
  color: var(--contest-danger);
}

.contest-entry-form [data-required-group].is-invalid {
  border: 1px solid var(--contest-danger);
  padding: .75rem
}

.contest-entry-form .is-invalid {
  border-color: var(--contest-danger)
}

.contest-entry-form fieldset {
  display: grid;
  gap: .75rem;
  margin: 0;
  padding: 1rem
}

.contest-terms__text {
  max-height: 18rem;
  overflow-y: auto;
  padding: .75rem;
  background: var(--contest-white);
  border: 1px solid var(--contest-gray);
  white-space: normal
}

.contest-terms__text ul {
  margin: 0;
  padding-left: 1.5rem
}

.contest-terms__text li {
  margin: 0 0 .5rem;
  padding-left: .15rem;
  list-style: disc
}

.contest-terms__text li:last-child {
  margin-bottom: 0
}

.contest-terms__agree {
  display: inline-flex !important;
  align-items: center;
  gap: .4rem;
  width: auto !important;
}

.contest-terms__agree input[type="checkbox"] {
  width: auto;
  margin: 0
}

.contest-terms__error {
  margin: 0;
  color: var(--contest-danger);
  font-size: 1rem;
  font-weight: 700
}

.contest-terms__error[hidden] {
  display: none
}

.contest-entry-form fieldset button,
.contest-entry-form label button {
  justify-self: start
}

.contest-entry-form [data-required-group="categories"]>#ex-contest-categories {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem
}

.contest-entry-form [data-required-group="categories"] {
  display: block;
}

.contest-entry-form [data-required-group="categories"] #ex-contest-categories label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  white-space: nowrap
}

.contest-entry-form [data-required-group="categories"] input[type="checkbox"] {
  width: auto;
  margin: 0
}

.contest-form-success a {
  overflow-wrap: anywhere
}

.contest-confirmation {
  max-width: 42rem;
  padding: 2rem;
  border: 1px solid var(--contest-gray);
  background: var(--contest-light);
  font-size: 1rem
}

.contest-confirmation dl {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: .5rem 1rem
}

.contest-confirmation dt {
  font-weight: 700
}

.contest-confirmation dd {
  margin: 0;
  white-space: pre-wrap
}

.contest-confirmation form {
  margin-top: 1.5rem
}

.contest-confirmation__files {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem
}

.contest-confirmation__files img,
.contest-confirmation__files video {
  width: 7rem;
  height: 5rem;
  object-fit: cover
}

.contest-entry-form button {
  justify-self: start
}

.modal-open {
  overflow: hidden
}

.ex-contest-vote-page .site-main {
  width: 100%;
  max-width: none;
}

.ex-contest-vote-page .content-area {
  width: 100%;
  max-width: none;
}

.ex-contest-form-page .site-main,
.ex-contest-form-page .content-area {
  width: 100%;
  max-width: none
}

.ex-contest-vote-page .site-main,
.ex-contest-vote-page .contest-browser {
  background: var(--contest-white);
}

@media(max-width:48rem) {
  .contest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem
  }

  .contest-toolbar {
    justify-content: stretch
  }

  .contest-toolbar form {
    width: 100%
  }

  .contest-toolbar label {
    flex: 1
  }

  .contest-toolbar select {
    min-width: 0
  }

  .contest-card__body {
    padding: .75rem
  }

  .contest-card__open strong {
    font-size: 1rem
  }
}

@media(max-width:32rem) {
  .contest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .contest-browser__intro {
    padding-top: 1rem
  }
}

/* 2026 application form */
.contest-form-section {
  width: calc(100% - 3rem);
  max-width: none;
  margin: 0 auto;
  clear: both;
  color: var(--contest-primary);
}

.contest-form-intro {
  margin-bottom: 2.5rem;
}

.contest-form-intro h1 {
  margin: 0 0 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--contest-secondary);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.35;
}

.contest-form-intro p {
  margin: 0;
}

.contest-form-intro p+p {
  margin-top: .75rem;
}

.contest-form-section .contest-entry-form {
  width: 100%;
  max-width: none;
  clear: both;
  grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 1fr);
  align-items: start;
  gap: 1.75rem;
  padding: 0;
  background: transparent;
}

.contest-entry-form>.contest-form-error {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
}

.contest-form-section>.contest-form-error {
  display: block;
  float: none;
  clear: both;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.contest-form-main,
.contest-form-section .contest-terms {
  border: 1px solid var(--contest-gray);
  border-radius: 3px;
  background: var(--contest-white);
}

.contest-form-section.contest-confirmation {
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
}

.contest-confirmation__main {
  max-width: none;
  padding: 1.75rem;
  border: 1px solid var(--contest-gray);
  border-radius: 3px;
  background: var(--contest-white);
}

.contest-form-section.contest-confirmation dl {
  grid-template-columns: minmax(10rem, 20rem) minmax(0, 1fr);
  gap: 1.15rem 1.5rem;
  margin: 0;
}

.contest-form-section.contest-confirmation dd {
  min-width: 0;
  padding: .7rem .85rem;
  border: 1px solid #cbd2d9;
  border-radius: 3px;
  background: #fff;
  overflow-wrap: anywhere;
}

.contest-form-section.contest-confirmation form {
  max-width: 52rem;
  margin-top: 1.5rem;
}

.contest-form-main {
  display: grid;
  gap: 3.15rem;
  padding: 2.75rem;
  margin-top: 1.5rem;
}

.contest-form-sidebar {
  display: grid;
  gap: 1.5rem;
}

.contest-form-actions {
  display: grid;
  gap: .75rem;
  grid-column: 1;
  margin-top: 0;
  padding: 0;
}

.contest-upload-progress {
  display: grid;
  gap: .4rem;
  width: 100%;
}

.contest-upload-progress[hidden] {
  display: none;
}

.contest-upload-progress label {
  display: flex;
  justify-content: space-between;
}

.contest-upload-progress progress {
  width: 100%;
  height: 1.25rem;
  accent-color: var(--contest-secondary);
}

.contest-form-main>label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: .35rem;
}

.contest-form-main>label>input, .contest-form-main>label>select, .contest-form-main>label>textarea, .contest-form-main>label>span[id] {
  order: 3;
  flex: 0 0 100%;
  width: 100%;
  margin-top: .3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contest-form-main>label>.required-mark {
  order: 2;
  margin: 0;
}

.contest-form-main>label>button {
  order: 4;
  margin-top: .5rem;
}

.contest-form-section .contest-entry-form input,
.contest-form-section .contest-entry-form select,
.contest-form-section .contest-entry-form textarea {
  min-height: 3rem;
  padding: .7rem .85rem;
  border: 1px solid #cbd2d9;
  border-radius: 3px;
  background: #fff;
}

.contest-form-section .contest-entry-form textarea {
  min-height: 9rem;
}

.contest-form-section .contest-entry-form input:focus,
.contest-form-section .contest-entry-form select:focus,
.contest-form-section .contest-entry-form textarea:focus {
  /* border-color: var(--contest-secondary);
  outline: 2px solid rgba(0, 80, 169, .16);
  outline-offset: 1px; */
}

.contest-form-section .contest-entry-form fieldset:not(.contest-terms) {
  background: var(--light);
  border: 1px solid var(--gray);
  border-radius: 3px;
}

.contest-form-section .contest-entry-form .contest-terms {
  padding: 1.5rem;
}

.contest-special-award+.contest-special-award {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #cbd2d9;
}

.contest-entry-form .contest-special-award__choice {
  display: flex;
  align-items: center;
  gap: .6rem;
  cursor: pointer;
}

.contest-form-section .contest-entry-form .contest-special-award__choice input {
  width: 1.2rem;
  height: 1.2rem;
  min-height: 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--contest-secondary);
}

.contest-special-award__fields {
  margin-top: .75rem;
}

.contest-entry-form .contest-special-award__fields>label {
  display: block;
}

.contest-special-award__fields[hidden] {
  display: none;
}

.contest-special-award__fields input,
.contest-special-award__fields textarea {
  width: 100%;
}

.contest-entry-form legend {
  padding: 0 1rem;
}

.contest-form-section .contest-terms__text {
  max-height: none;
  overflow: visible;
  padding: 0;
  border: 0;
}

.contest-form-section,
.contest-form-section label,
.contest-form-section input,
.contest-form-section select,
.contest-form-section textarea,
.contest-form-section button,
.contest-form-section p,
.contest-form-section li,
.contest-form-section legend {
  font-size: 1.6rem;
}

.contest-form-section button,
.contest-form-section input[type="submit"] {
  color: #fff !important;
}

.contest-form-section #ex-contest-add-file {
  margin-top: .25rem;
}

#ex-contest-files {
  display: grid;
  gap: .75rem;
}

.contest-file-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

.contest-file-row input[type="file"] {
  flex: 1 1 16rem;
  min-width: 0;
  max-width: 100%;
}

.contest-file-row button {
  flex: 0 0 auto;
}

.contest-form-actions button {
  min-width: 10rem;
}

@media(max-width:48rem) {
  .contest-browser {
    width: calc(100% - 2rem);
  }

  .contest-form-section {
    width: calc(100% - 2rem);
  }

  .contest-form-intro {
    margin-bottom: 1.75rem;
  }

  .contest-form-section .contest-entry-form {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .contest-form-main {
    padding: 1.25rem;
  }

  .contest-confirmation__main {
    padding: 1.25rem;
  }

  .contest-form-section.contest-confirmation dl {
    grid-template-columns: 1fr;
    gap: .4rem;
  }

  .contest-form-section.contest-confirmation dd+dt {
    margin-top: .65rem;
  }

  .contest-form-sidebar, .contest-form-actions {
    grid-column: 1;
  }

  .contest-form-actions {
    margin-top: 0;
    padding: 0;
  }

  .contest-form-actions button {
    width: 100%;
  }

  .contest-form-section .contest-entry-form .contest-terms {
    padding: 1.25rem;
  }
}

.contest-confirmation__notice {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--contest-danger);
  border-radius: 3px;
  background: #fff5f5;
  color: var(--contest-danger);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.6;
}

.contest-confirmation__notice strong {
  display: block;
  font-size: 2.2rem;
}

.contest-form-section.contest-confirmation .contest-confirmation__notice--bottom {
  margin: 0 0 1rem;
  font-size: 1.6rem;
}

.contest-form-section.contest-confirmation .contest-confirmation__notice--bottom strong {
  font-size: 1.8rem;
}

/* 支店別応募数ページ・投票ページからのリンク */
.contest-browser__intro .contest-browser__links {
  margin: 1.5rem 0 0;
}

.contest-link-button,
.contest-link-button:visited {
  display: inline-block;
  padding: .75rem 1.5rem;
  border: 1px solid var(--contest-secondary);
  border-radius: .25rem;
  background: var(--contest-white);
  color: var(--contest-secondary) !important;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.contest-link-button::after {
  content: " ›";
}

.contest-link-button:hover,
.contest-link-button:focus-visible {
  background: var(--contest-light-blue);
}

.contest-branch-counts__table-wrap {
  overflow-x: auto;
  padding: 2rem 0 4rem;
}

.contest-branch-counts__table {
  width: 100%;
  min-width: 48rem;
  border-collapse: collapse;
  color: var(--contest-primary);
  font-size: 1.5rem;
}

.contest-branch-counts__table th,
.contest-branch-counts__table td {
  padding: .75rem 1rem;
  border: 1px solid var(--contest-gray);
  white-space: nowrap;
}

.contest-branch-counts__table thead th {
  background: var(--contest-secondary);
  color: var(--contest-white);
  text-align: center;
}

.contest-branch-counts__table tbody th {
  text-align: left;
  font-weight: 400;
}

.contest-branch-counts__table tbody tr:nth-child(even) {
  background: var(--contest-light);
}

.contest-branch-counts__table td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.contest-branch-counts__table .contest-branch-counts__total,
.contest-branch-counts__table tfoot th,
.contest-branch-counts__table tfoot td {
  font-weight: 700;
}

.contest-branch-counts__table tfoot th,
.contest-branch-counts__table tfoot td {
  background: var(--contest-light-blue);
}

/* 支店別応募数ランキング */
.contest-branch-counts__table .contest-branch-counts__rank {
  width: 5em;
  text-align: center;
  font-weight: 700;
}

.contest-branch-counts__table tbody th {
  font-weight: 700;
}

/* 合計列を強調 */
.contest-branch-counts__table thead th.contest-branch-counts__total {
  background: var(--contest-danger);
}

.contest-branch-counts__table td.contest-branch-counts__total {
  border-right: 3px solid var(--contest-danger);
  border-left: 3px solid var(--contest-danger);
  background: #fff6e5;
  color: var(--contest-danger);
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
}

.contest-branch-counts__table td.contest-branch-counts__total span {
  margin-left: .2em;
  font-size: 1.3rem;
}

.contest-branch-counts__table tfoot td.contest-branch-counts__total {
  border-bottom: 3px solid var(--contest-danger);
  background: #ffe9c2;
}

/* 上位3支店 */
.contest-branch-counts__table tbody tr.is-top .contest-branch-counts__rank {
  color: var(--contest-white);
  font-size: 1.8rem;
}

.contest-branch-counts__table tbody tr.is-rank-1 .contest-branch-counts__rank {
  background: #b8901c;
}

.contest-branch-counts__table tbody tr.is-rank-2 .contest-branch-counts__rank {
  background: #7d848b;
}

.contest-branch-counts__table tbody tr.is-rank-3 .contest-branch-counts__rank {
  background: #9a5e33;
}

/* 投票ページ 文字サイズ拡大 */
.contest-browser:not(.contest-branch-counts) {
  font-size: 1.8rem
}

.contest-browser:not(.contest-branch-counts) label,
.contest-browser:not(.contest-branch-counts) select,
.contest-browser:not(.contest-branch-counts) button,
.contest-browser:not(.contest-branch-counts) p,
.contest-browser:not(.contest-branch-counts) strong,
.contest-modal,
.contest-modal button,
.contest-modal p {
  font-size: 1.8rem
}

.contest-browser:not(.contest-branch-counts) .contest-category-filter__group legend {
  font-size: 1.5rem
}

.contest-browser:not(.contest-branch-counts) .contest-link-button {
  font-size: 1.7rem
}

.contest-browser:not(.contest-branch-counts) .contest-card__category {
  font-size: 1.5rem
}

.contest-browser:not(.contest-branch-counts) .contest-card__products,
.contest-browser:not(.contest-branch-counts) .contest-card__branch,
.contest-browser:not(.contest-branch-counts) .contest-card__votes,
.contest-browser:not(.contest-branch-counts) .contest-card__placeholder {
  font-size: 1.2rem
}

.contest-browser:not(.contest-branch-counts) .contest-card__video-placeholder {
  font-size: 1.5rem
}

.contest-browser:not(.contest-branch-counts) .contest-card__video-badge {
  font-size: 1rem
}

.contest-modal .contest-modal__close {
  font-size: 1.75rem
}

.contest-modal .contest-modal__gallery button {
  font-size: 2.25rem
}

@media(max-width:48rem) {
  .contest-browser:not(.contest-branch-counts) .contest-card__open strong {
    font-size: 1.2rem
  }
}

/* 投票ページ 件数・ページネーション */
.contest-results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem
}

.contest-results-bar--bottom {
  justify-content: center;
  margin: 2.5rem 0 1rem
}

/* メーカー・並び順と同じ行の右端に表示 */
.contest-browser .contest-results-count {
  align-self: flex-end;
  margin: 0 0 0 auto;
  padding-bottom: .5rem;
  color: var(--contest-primary);
  font-size: 1.5rem;
  font-weight: bold
}

.contest-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem
}

.contest-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 3rem;
  padding: 0 .75rem;
  border: 1px solid var(--contest-secondary);
  border-radius: .25rem;
  background: var(--contest-white);
  color: var(--contest-secondary);
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
  text-decoration: none
}

.contest-pagination a.page-numbers:hover,
.contest-pagination a.page-numbers:focus-visible {
  background: var(--contest-light-blue)
}

.contest-pagination .page-numbers.current {
  border-color: var(--contest-secondary);
  background: var(--contest-secondary);
  color: var(--contest-white)
}

.contest-pagination .page-numbers.dots {
  border-color: transparent;
  background: none;
  color: var(--contest-primary)
}

@media(max-width:48rem) {
  .contest-browser .contest-results-count {
    width: 100%;
    padding-bottom: 0;
    text-align: right
  }

  .contest-pagination .page-numbers {
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 .5rem;
    font-size: 1.25rem
  }
}

/* 投票ページ 同じ行のカードで部門・タイトル・施工商品名の高さを揃える
   行構成：画像 / 部門 / タイトル / 施工商品名 / 投票ボタン */
@supports (grid-template-rows: subgrid) {
  .contest-card {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    row-gap: 0
  }

  .contest-card__open {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0
  }

  .contest-card__body {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: .25rem;
    align-content: stretch
  }

  .contest-card__body > strong {
    align-self: start
  }

  .contest-card__products {
    align-self: start
  }

  .contest-card .contest-vote {
    align-self: end
  }
}
