.page-section {
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 768px) {
  .page-section {
    padding-inline: var(--content-spacing);
  }
}

.page-section .page-heading {
  margin-inline: var(--content-spacing);
}

@media (min-width: 768px) {
  .page-section .page-heading {
    margin-left: 0;
    margin-right: 0;
  }
}

.filter-wrapper {
  background-color: #fff;
  border: 1px solid #e2e2e2;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  display: flex;
}

@media (max-width: 767px) {
  .filter-wrapper {
    padding: 0 var(--content-spacing);
    border-left: none;
    border-right: none;
  }
}

.filter {
  flex-direction: column;
  display: flex;
}

@media (min-width: 768px) {
  .filter {
    grid-template-columns: 70px 1fr;
    gap: 12px;
    display: grid;
  }
}

.filter .filter-label {
  cursor: pointer;
  color: var(--text-color);
  background-color: rgba(0, 0, 0, 0);
  border: none;
  outline: none;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  display: flex;
}

@media (min-width: 768px) {
  .filter .filter-label {
    pointer-events: none;
    gap: 16px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .filter .filter-label > i {
    display: none !important;
  }
}

.filter .filter-label > p {
  align-items: center;
  gap: 4px;
  font-size: 14px;
  display: flex;
}

.filter .filter-label > i {
  transition: transform 0.3s;
}

.filter .filter-label.is-open > i {
  transform: rotate(180deg);
}

.filter .filter-label .filter-label-value {
  font-size: 14px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .filter .filter-label .filter-label-value {
    display: none;
  }
}

.filter .filter-label.is-open .filter-label-value {
  display: none;
}

.filter .filter-list {
  opacity: 0;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  max-height: 0;
  transition:
    max-height 0.3s,
    opacity 0.3s;
  display: grid;
  overflow: hidden;
}

@media (max-width: 550px) {
  .filter .filter-list {
    grid-template-columns: repeat(1, minmax(120px, 1fr));
  }
}

@media (min-width: 768px) {
  .filter .filter-list {
    flex-wrap: wrap;
    display: flex;
    overflow: visible;
    opacity: 1 !important;
    max-height: none !important;
  }
}

.filter .filter-list.is-open {
  opacity: 1;
  max-height: 1000px;
}

@media (max-width: 767px) {
  .filter .filter-list.is-open {
    padding-bottom: 10px;
  }
}

.filter .filter-list > a {
  color: #333;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 9999px;
  grid-column: auto / span 1;
  padding: 11px 20px;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
  overflow: hidden;
}

.filter .filter-list > a.active {
  background-color: var(--main-color);
  color: #fff;
  border-color: var(--main-color);
  pointer-events: none;
}

.filter .filter-list > a:hover:not(.active) {
  background-color: #f0f0f0;
}

.voice-count {
  text-align: left;
  padding-bottom: 16px;
  padding-inline: var(--content-spacing);
}

@media (min-width: 768px) {
  .voice-count {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 767px) {
  .voice-count {
    padding-bottom: 0;
  }
}

.voice-count p {
  font-size: 14px;
}

.page-voice .posts {
  width: 100%;
}

.page-voice .post-nothing {
  text-align: center;
  font-size: var(--text-sm);
  padding-block: 60px;
}

@media (min-width: 768px) {
  .page-voice .post-nothing {
    font-size: var(--text-md);
  }
}

.post-voice {
  padding-bottom: var(--p-lg);
  padding-inline: var(--content-spacing);
  margin-bottom: var(--p-lg);
  border-bottom: 1px solid var(--border-color);
  grid-template-columns: 1fr;
  grid-template-areas:
    'image'
    'category'
    'header'
    'property'
    'contents';
  align-items: start;
  display: grid;
  position: relative;
  gap: var(--gap-md);
}

.post-voice .category {
  font-size: 15px;
  font-weight: var(--weight-bold);
  color: #fff;
  border-radius: 4px;
  grid-area: category;
  justify-self: start;
  padding: 8px 18px;
  line-height: 1.2;
}

.post-voice.blue .category {
  background-color: var(--text-point-color);
}

.post-voice.orange .category {
  background-color: var(--main-color);
}

@media (min-width: 768px) {
  .post-voice .category {
    padding: 10px 20px;
    font-size: 16px;
    margin-bottom: var(--gap-md);
  }

  .post-voice {
    padding-left: 0;
    padding-right: 0;
  }

  .post-voice:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
  }
}

.post-voice .post-header {
  gap: var(--gap-md);
  margin-bottom: var(--gap-md);
  flex-direction: column;
  grid-area: header;
  display: flex;
}

.post-voice .post-header .title {
  font-size: var(--text-lg);
  color: #333;
  line-height: 1.2;
}

.post-voice .property {
  color: var(--text-sub-color);
  margin-bottom: var(--gap-md);
  grid-area: property;
}

.post-voice .content {
  word-break: break-all;
  color: var(--text-color);
  font-size: var(--text-color);
  line-height: var(--line-height-md);
  gap: var(--gap-md);
  flex-direction: column;
  grid-area: contents;
  display: flex;
}

.post-voice .content a {
  color: var(--link-color);
}

.post-voice .content a:hover {
  color: var(--sub-color-03);
  text-decoration: none;
}

.post-voice .content li {
  list-style-position: inside;
}

.post-voice .content ul {
  list-style: initial;
}

.post-voice .content ol {
  list-style: decimal;
}

.post-voice .content figcaption {
  text-align: center;
}

.post-voice .time {
  color: var(--text-sub-color);
  grid-area: date;
}

.post-voice .wp-post-image {
  -o-object-fit: contain;
  object-fit: contain;
  -o-object-position: center;
  object-position: center;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--gap-md);
  grid-area: image;
  display: block;
  max-width: 480px;
  width: 100%;
}

@media (min-width: 960px) {
  .post-voice {
    align-items: flex-start;
    column-gap: var(--gap-lg);
    padding-bottom: var(--p-xxl);
    border-top: none;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--p-xl);
    grid-template-columns: 1fr 300px;
    grid-template-areas:
      'category category'
      'header image'
      'property image'
      'contents image';
  }

  .post-voice:first-child {
    padding-top: 0;
  }

  .post-voice .post-header .title {
    font-size: var(--text-xl);
  }

  .post-voice .time {
    min-height: 20px;
  }

  .no-image {
    grid-template-columns: 1fr;
  }
}

/* .pagination */
.pagination {
  gap: 0;
  padding: 20px var(--content-spacing) 0;
}

@media (min-width: 768px) {
  .pagination {
    padding: 40px 0 0;
  }
}
