/* Single post page */
#single {
  display: flex;
  justify-content: space-between;
  max-width: 1240px;
  margin: auto;
}

.topics_list {
  padding-top: 100px;
  font-size: 24px;
  width: 10%;
  display: none;
}

#single .page {
  max-width: 1240px;
  padding: 30px 20px;
  width: 100%;
  margin: auto;
}

.topics_list h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.topics_list a {
  color: #333;
  font-size: 18px;
}

.single_titile {
  font-size: 30px;
}

.column_day_tag_box {
  display: flex;
  margin-bottom: 30px;
}

.column_list_day_single {
  font-size: 18px;
  color: #333;
  margin-right: 20px;
}

.column_list_tag_single {
  font-size: 15px;
  display: inline-block;
  color: #333333;
  padding: 5px;
  margin-top: -3px;
  border: 1px solid #333;
}

.other {
  background-color: orange;
  font-size: 11px;
  padding: 3px;
}

.column_inner {
  display: flex;
}

.date {
  margin-top: 50px;
  width: 100%;
}

#single .date p {
  font-weight: normal;
  text-align: left;
  line-height: 1.8;
}

#single .date .wp-block-image,
#single .date figure {
  width: 100%;
  max-width: 100%;
  margin: 0 0 24px;
}

#single .date .wp-block-image img,
#single .date figure img,
#single .date p img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.nav-previous a::after {
  content: ' | ';
  color: #282828;
}

.nav-previous a,
.nav-next a {
  color: #00bb00;
}

.c-match-archive-back {
  margin-top: 16px;
  text-align: center;
}

.c-match-archive-back__link {
  color: #00bb00;
  text-decoration: underline;
}

.c-match-archive-back__link:hover {
  opacity: 0.7;
}

/* Match results table and gallery */
.c-match-results {
  margin-top: 40px;
  margin-bottom: 40px;
}

.c-match-results__title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-left: 10px;
  border-left: 5px solid #006600;
  line-height: 1.4;
  font-weight: bold;
}

.c-match-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  table-layout: fixed;
}

.c-match-table th,
.c-match-table td {
  border: 1px solid #ccc;
  padding: 15px;
  text-align: left;
  vertical-align: top;
  word-wrap: break-word;
}

.c-match-table th {
  background-color: #f9f9f9;
  font-weight: bold;
  color: #333;
  font-size: 16px;
}

.c-match-table td,
.c-match-table td p {
  font-size: 14px;
  font-weight: normal;
  line-height: 1.6;
  color: inherit;
}

.c-match-table td strong,
.c-match-table td b {
  font-weight: bold !important;
}

.c-match-table td span {
  color: inherit;
  font-weight: inherit;
  font-size: inherit;
}

.c-match-table__head--dept {
  width: 20%;
}

.c-match-table__head--result {
  width: 15%;
}

.c-match-table__head--member {
  width: 65%;
}

.c-match-table td > *:first-child {
  margin-top: 0;
}

.c-match-table td > *:last-child {
  margin-bottom: 0;
}

.c-match-gallery {
  margin-top: 40px;
}

.c-match-gallery__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 -10px;
}

.c-match-gallery__item {
  width: 33.333%;
  padding: 10px;
  box-sizing: border-box;
}

.c-match-gallery__link {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s;
}

.c-match-gallery__link:hover {
  opacity: 0.8;
}

.c-match-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 1040px) {
  .topics_list {
    display: none;
  }

  .single_titile {
    font-size: 18px;
  }
}

@media screen and (max-width: 767px) {
  .c-match-table,
  .c-match-table tbody {
    border: none;
  }

  .c-match-table thead {
    display: none;
  }

  .c-match-table tr {
    display: block;
    margin-bottom: 20px;
    border: 2px solid #006600;
  }

  .c-match-table td {
    display: block;
    width: 100% !important;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 10px;
    box-sizing: border-box;
  }

  .c-match-table td:last-child {
    border-bottom: none;
  }

  .c-match-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: bold;
    font-size: 0.8em;
    color: #006600;
    margin-bottom: 5px;
  }

  .c-match-gallery__item {
    width: 50%;
  }
}
