.ts-news-page {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  color: #181818;
}

.ts-news-page * {
  box-sizing: border-box;
}

.ts-news-hero {
  position: relative;
  overflow: hidden;
}

.ts-news-hero__media {
  margin: 0;
  width: 100%;
}

.ts-news-hero__media img {
  width: 100%;
  display: block;
}

.ts-news-archive {
  padding: 110px 0 122px;
  background: #ffffff;
}

.ts-news-archive .ts-news-archive__inner,
.ts-news-archive .news-list-content {
  width: min(calc(100% - 32px), 1120px) !important;
  max-width: 1120px !important;
  margin-inline: auto;
}

.ts-news-archive .wp-block-query.ts-news-query,
.ts-news-archive .wp-block-query.news-list-query,
.ts-news-archive .ts-news-query,
.ts-news-archive .news-list-query {
  display: block;
  margin: 0;
  max-width: none !important;
}

.ts-news-archive__title {
  margin: 0 0 54px;
  text-align: center;
  color: #181818;
  font-family: var(--font-mincho);
  font-size: 36px;
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: 0.06em;
}

.ts-news-archive .wp-block-post-template {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid #dddddd;
  display: block;
}

.ts-news-archive .wp-block-post-template > li,
.ts-news-archive .wp-block-post-template > li.wp-block-post {
  margin: 0;
  padding: 0;
  list-style: none;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.ts-news-archive .wp-block-post-template > li + li {
  margin-top: 0;
}

.ts-news-archive .wp-block-post-template .wp-block-group.is-layout-constrained {
  max-width: none !important;
}

.news-list-row,
.ts-news-row {
  position: relative;
  margin: 0;
  display: grid;
  grid-template-columns: 96px max-content minmax(0, 1fr);
  column-gap: 24px;
  align-items: center;
  min-height: 74px;
  padding: 0;
  border-bottom: 2px solid #dddddd;
  background: transparent;
}

.news-list-row__date,
.ts-news-row__date {
  margin: 0;
  color: #333333;
  font-family: var(--font-kaku);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2666666667;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.news-list-row__cat,
.ts-news-row__cat {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-kaku);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2666666667;
  white-space: nowrap;
}

.news-list-row__cat a,
.ts-news-row__cat a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #3fa6f2;
  color: #ffffff;
  text-decoration: none;
  line-height: 1;
}

.news-list-row__title,
.ts-news-row__title {
  margin: 0;
  font-family: var(--font-kaku);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5333333333;
  letter-spacing: 0.02em;
}

.news-list-row__title.wp-block-post-title,
.ts-news-row__title.wp-block-post-title {
  margin: 0 !important;
}

.news-list-row__title a,
.ts-news-row__title a {
  color: #181818;
  text-decoration: none;
}

.news-list-row__title a::after,
.ts-news-row__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.news-list-row__title a:hover,
.news-list-row__title a:focus-visible,
.ts-news-row__title a:hover,
.ts-news-row__title a:focus-visible {
  color: #307ec1;
}

.news-list-row__empty,
.ts-news-query__empty {
  margin: 0;
  text-align: center;
  font-family: var(--font-kaku);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
  color: rgba(24, 24, 24, 0.72);
}

.news-list-pagination,
.ts-news-pagination {
  margin-top: 62px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  position: relative;
}

.news-list-pagination::before,
.ts-news-pagination::before {
  content: "|";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #8e8e8e;
  font-family: var(--font-kaku);
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
}

.news-list-pagination .wp-block-query-pagination-previous,
.news-list-pagination .wp-block-query-pagination-next,
.ts-news-pagination .wp-block-query-pagination-previous,
.ts-news-pagination .wp-block-query-pagination-next {
  margin: 0;
}

.news-list-pagination .wp-block-query-pagination-numbers,
.ts-news-pagination .wp-block-query-pagination-numbers {
  display: none;
}

.news-list-pagination a,
.news-list-pagination .news-list-pagination__link,
.ts-news-pagination a {
  color: #b9b9b9;
  text-decoration: none;
  font-family: var(--font-kaku);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
}

.news-list-pagination span,
.ts-news-pagination span {
  color: #b9b9b9;
  font-family: var(--font-kaku);
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
}

.news-list-pagination a:hover,
.news-list-pagination a:focus-visible,
.ts-news-pagination a:hover,
.ts-news-pagination a:focus-visible {
  color: #9c9c9c;
}

.news-list-pagination .is-disabled,
.news-list-pagination .disabled,
.news-list-pagination .wp-block-query-pagination-previous span,
.news-list-pagination .wp-block-query-pagination-next span,
.ts-news-pagination .is-disabled,
.ts-news-pagination .disabled,
.ts-news-pagination .wp-block-query-pagination-previous span,
.ts-news-pagination .wp-block-query-pagination-next span {
  opacity: 0.34;
  pointer-events: none;
}

.news-list-pagination .current,
.ts-news-pagination .current {
  display: none;
}

/* News detail */
.ts-news-detail {
  background: #ffffff;
  color: #181818;
  padding: 110px 0 112px;
}

.ts-news-detail * {
  box-sizing: border-box;
}

.ts-news-detail__inner {
  width: min(calc(100% - 32px), 760px);
  margin-inline: auto;
  display: grid;
  gap: 0;
}

.ts-news-detail__head {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
  width: 100%;
}

.ts-news-detail__date {
  margin: 0;
  color: #3d3d3d;
  font-family: var(--font-kaku);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.ts-news-detail__title {
  margin: 0;
  font-family: var(--font-mincho);
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.ts-news-detail__thumb {
  width: 40%;
  margin: 0 auto 44px;
}

.ts-news-detail__thumb img {
  width: 100%;
  border-radius: 0;
  display: block;
}

.ts-news-detail__content {
  margin: 0;
  width: 100%;
  max-width: none !important;
  color: #2f2f2f;
  font-family: var(--font-kaku);
  font-size: 15px;
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.02em;
}

.ts-news-detail__content.wp-block-post-content.is-layout-constrained {
  max-width: none !important;
}

.ts-news-detail__content > *:first-child {
  margin-top: 0;
}

.ts-news-detail__content > * + * {
  margin-top: 1.35em;
}

.ts-news-detail__content h2,
.ts-news-detail__content h3,
.ts-news-detail__content h4 {
  font-family: var(--font-mincho);
  font-weight: 300;
  line-height: 1.45;
}

.ts-news-detail__content img {
  border-radius: 0;
  height: auto;
}

.ts-news-detail__footer {
  margin-top: 52px;
  display: grid;
  gap: 42px;
}

.ts-news-detail__nav-row {
  border-top: 1px solid #8f8f8f;
  padding-top: 18px;
  align-items: center;
}

.ts-news-detail__nav {
  margin: 0;
}

.ts-news-detail__nav,
.ts-news-detail__nav a {
  text-decoration: none;
  color: #181818;
  font-family: var(--font-kaku);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.ts-news-detail__nav:hover,
.ts-news-detail__nav:focus-visible,
.ts-news-detail__nav a:hover,
.ts-news-detail__nav a:focus-visible {
  color: #307ec1;
}

.ts-news-detail__nav .is-disabled,
.ts-news-detail__nav .disabled {
  opacity: 0.38;
  pointer-events: none;
}

.ts-news-detail__back-wrap {
  display: flex;
  justify-content: center;
}

.ts-news-detail__back-button {
  height: 44px;
  padding: 0 12px 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 3px;
  background: #2f86d2;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-kaku);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
}

.ts-news-detail__back-button:hover,
.ts-news-detail__back-button:focus-visible {
  background: #236ea9;
  color: #ffffff;
}

.ts-news-detail__back-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #2f86d2;
  font-size: 14px;
  line-height: 1;
}
