.news__filter {
  margin-top: 90px;
  display: flex;
  justify-content: space-between;
}

/* デフォルトのチェックボックスを非表示 */
.filter__item-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* カスタムチェックボックスのスタイル */
.filter__item span {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.5s ease;
}

/* チェックボックスのベース */
.filter__item span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  background-color: #fff;
  transition: all 0.5s ease;
}

.filter__item.information .filter__item-input+span::before {
  border-color: #7C77D1;
}

.filter__item.new_products .filter__item-input+span::before {
  border-color: #4AA6E7;
}

.filter__item.event .filter__item-input+span::before {
  border-color: #E68135;
}

.filter__item.media .filter__item-input+span::before {
  border-color: #91AC3E;
}

/* チェックマーク */
.filter__item span::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 45%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 13px;
  opacity: 0;
  transition: all 0.5s ease;
}

/* チェック済み状態 */
.filter__item-input:checked+span::after {
  opacity: 1;
}

.filter__item.information span::after {
  border: solid #7C77D1;
  border-width: 0 3px 3px 0;
}

.filter__item.new_products span::after {
  border: solid #4AA6E7;
  border-width: 0 3px 3px 0;
}

.filter__item.event span::after {
  border: solid #E68135;
  border-width: 0 3px 3px 0;
}

.filter__item.media span::after {
  border: solid #91AC3E;
  border-width: 0 3px 3px 0;
}

.news__list {
  margin-top: 90px;
}

.news__link {
  padding: 30px 0;
}

/* pagenation */
.page-navigation {
  margin-top: 90px;
}

.page-navigation .wp-pagenavi {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.page-navigation .wp-pagenavi a,
.page-navigation .wp-pagenavi span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.7px;
  margin: 0 !important;
  padding: 5px 0 0 !important;
  border: 1px solid #4AA6E7;
  transition: .3s ease;
}

.page-navigation .wp-pagenavi a:hover {
  background: #F2F8FD;
  border-color: transparent;
}

.wp-pagenavi span.current {
  background: #F2F8FD;
  border: none;
}

@media screen and (max-width: 750px) {
  .news__filter {
    margin-top: 3rem;
    flex-wrap: wrap;
    padding: 0 1rem;
    gap: 3.5rem 0;
  }

  .news__filter .filter__item:nth-child(even) {
    display: flex;
    justify-content: end;
  }

  /* カスタムチェックボックスのスタイル */
  .filter__item span {
    padding-left: 3rem;
    font-size: 1.4rem;
  }

  /* チェックボックスのベース */
  .filter__item span::before {
    width: 1.6rem;
    height: 1.6rem;
  }

  /* チェックマーク */
  .filter__item span::after {
    left: 5%;
    width: 0.5rem;
    height: 0.9rem;
  }
  .filter__item.information span::after {
    left: 6%;
  }

  .filter__item.information span::after,
  .filter__item.new_products span::after,
  .filter__item.event span::after,
  .filter__item.media span::after {
    border-width: 0 0.2rem 0.2rem 0;
  }

  .news {
    padding: 6rem 3.1rem 9rem;
  }

  .news__list {
    margin-top: 6rem;
  }

  .news__link {
    padding: 1.5rem 0;
  }

  /* pagenation */
  .page-navigation {
    margin-top: 6rem;
  }

  .page-navigation .wp-pagenavi {
    gap: 0.8rem;
  }

  .page-navigation .wp-pagenavi a,
  .page-navigation .wp-pagenavi span {
    width: 3.2rem;
    height: 3.2rem;
    font-size: 1.2rem;
    letter-spacing: 0.06rem;
  }
}

/* -------------------
  詳細ページ
--------------------- */
.mainContents {
  margin-top: 120px;
}

.news__title {
  margin-top: 30px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 1.6px;
  padding-bottom: 30px;
  border-bottom: 1px solid #4AA6E7;
  line-height: 1.4;
}

.news__contents {
  margin-top: 30px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.7px;
}

.news__contents h2 {
  font-family: var(--font-strong);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 1px;
}

.empty-paragraph {
  height: 30px;
}
.news__contents a{
  color: var(--color-light-blue);
  text-decoration: underline;
  transition: 0.5s ease;
}
.news__contents a:hover {
 opacity: 0.5;
}
.news__contents p:has(.alignleft) {
  text-align: left;
}

.news__contents p:has(.alignright) {
  text-align: right;
}

.news__contents p:has(.aligncenter) {
  text-align: center;
}

.news__contents ul {
  padding-left: 20px;
  list-style: disc;
}

.news__contents ol {
  padding-left: 20px;
  list-style: decimal;
}

.news__btn {
  margin: 180px auto 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 345px;
  height: 80px;
  border-radius: 50px;
  border: 1px solid var(--color-main);
}

@media screen and (max-width: 750px) {
  .mainContents {
    margin-top: 6rem;
  }

  .news__title {
    margin-top: 1.5rem;
    font-size: 2rem;
    letter-spacing: 0.1rem;
    padding-bottom: 3rem;
  }

  .news__contents {
    margin-top: 3rem;
    font-size: 1.4rem;
    letter-spacing: 0.07rem;
  }

  .news__contents h2 {
    font-size: 1.6rem;
  }

  .empty-paragraph {
    height: 3rem;
  }

  .news__contents ul,
  .news__contents ol {
    padding-left: 2rem;
  }

  .news__btn {
    display: none;
  }
}