.subpage-heading {
	background-image: url("../../img/topics/mv_topics.jpg");
}

.page-content {
  padding: 20px 14px 70px;
}

.page-content-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.topics-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.topics-side {
  order: 1;
  background-color: var(--white-color);
}

.side-accordion + .side-accordion {
  margin-top: 10px;
}

.side-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--secondary-color);
  background: var(--gradation-blue);
  transition: opacity 0.25s ease;
}

.side-accordion-trigger::after {
  content: "＋";
  font-size: 1.1rem;
  line-height: 1;
}

.side-accordion-trigger[aria-expanded="true"]::after {
  content: "－";
}

.side-accordion-panel {
  padding: 10px 14px;
}

.topics-side-list {
  display: flex;
  flex-direction: column;
}

.topics-side-list a {
  display: block;
  padding: 4px 0;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.87rem;
}

.topics-news {
  order: 2;
  margin-bottom: 40px;
}

.topics-news-list li {
  border-bottom: 1px solid var(--line-color);
}

.topics-news-link {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  row-gap: 1px;
  padding: 16px 4px;
}

.topics-news-date {
  grid-column: 1;
  grid-row: 1;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--text-gray-color);
  line-height: 1.5;
}

.topics-news-category {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--text-link-color);
  line-height: 1.5;
}

.topics-news-title {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  padding-right: 52px;
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 500;
  line-height: 1.6;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.15em;
  transition: text-decoration-color 0.25s ease;
}

.topics-news-title::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 42px;
  height: 26px;
  background-image: url("../../img/common/icon_arrow.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 18px;
  background-color: var(--primary-color);
  border-radius: 999px;
  transition: background-color 0.25s ease;
}

.wp-pagenavi {
  display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  margin-top: 24px;
}

.wp-pagenavi a,
.wp-pagenavi span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  border-radius: 999px;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.wp-pagenavi .current {
  color: var(--text-gray-color);
  background-color: transparent;
}

.topics-detail {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.topics-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.topics-detail-date {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text-gray-color);
}

.topics-detail-category {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text-link-color);
}

.topics-detail-title {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.6;
}

.topics-detail-divider {
  width: 100%;
  border: none;
  border-top: 2px solid var(--line-color);
  margin: 18px 0 24px;
}

.topics-detail-body p {
  font-size: 1rem;
  line-height: 1.9;
}

.topics-detail-body p + p {
  margin-top: 16px;
}

.topics-detail-body a {
  color: var(--text-link-color);
  text-decoration: underline;
}

.topics-detail-body a[target="_blank"]::after {
  color: var(--text-link-color);
  content: "";
  width: 18px;
  height: 18px;
  background-image: url("../../img/common/icon_open_org.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}

.topics-detail-body h2 {
  margin: 40px 0 30px;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.7;
  background-color: #E0E5E8;
  padding: 12px;
}

.topics-detail-body h3 {
  margin: 30px 0 20px;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.6;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-color);
}

.topics-detail-body h4 {
  margin: 20px 0 10px;
  padding-left: 10px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  border-left: 6px solid var(--primary-color);
}

.topics-detail-body ul,
.topics-detail-body ol {
  margin: 30px 0;
  padding-left: 1.6em;
}

.topics-detail-body li + li {
  margin-top: 10px;
}

.topics-detail-body ul li,
.topics-detail-body ol li {
  font-size: 1rem;
  line-height: 1.4;
}

.topics-detail-body ul {
  list-style: disc;
}

.topics-detail-body ol {
  list-style: decimal;
}

.topics-detail-body ul li::marker,
.topics-detail-body ol li::marker {
  color: var(--primary-color);
}

.topics-detail-body ol li::marker {
  font-weight: 700;
}

.topics-detail-body blockquote {
  font-size: 1rem;
  margin: 20px 0;
  padding: 14px 18px;
  border: 1px solid var(--line-color);
  line-height: 1.8;
}

.topics-detail-body table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 20px 0;
}

.topics-detail-body th,
.topics-detail-body td {
  text-align: left;
  line-height: 1.5;
  color: var(--text-color);
  height: 54px;
  padding: 12px 0.5rem!important;
  border: solid 1px var(--line-color);
}

.topics-detail-body th {
  font-weight: 700;
  color: var(--text-color);
  line-height: 1;
  background-color: var(--background-color);
  height: 54px;
  padding: 12px 0.5rem;
  vertical-align: middle;
}

.topics-detail-back {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}



@media (min-width: 769px) {
  .topic-card {
    padding-bottom: 0;
    border-bottom: none;
  }

  .page-content {
    padding: 50px 30px 70px;
  }

  .topics-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 50px;
    align-items: start;
  }

  .topics-news {
    order: 0;
    grid-column: 1;
    grid-row: 1;
  }

  .topics-side {
    order: 0;
    grid-column: 2;
    grid-row: 1;
  }

  .side-accordion-trigger {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .side-accordion-panel {
    padding: 0 16px 12px;
  }

  .topics-side-list a {
    font-size: 0.93rem;
    padding: 2px 0;
  }

  .topics-news-link {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 24px 4px;
  }

  .topics-news-date,
  .topics-news-category {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.87rem;
  }

  .topics-news-title {
    flex: 1;
    min-width: 0;
    font-size: 1rem;
  }

  .topics-pagination {
    margin-top: 30px;
  }

  .topics-detail-title {
    font-size: 1.37rem;
  }

  .topics-detail-body h2 {
    font-size: 1.25rem;
    padding: 14px 12px;
  }

  .topics-detail-body h3 {
    font-size: 1.12rem;
    margin: 30px 0 20px;
  }

  .topics-detail-body h4 {
    font-size: 1rem;
    margin: 20px 0 1ch max;
  }
}


@media (hover: hover) and (pointer: fine) {
  .topics-news-link:hover .topics-news-title::after {
    background-color: var(--text-link-color);
  }

  .topics-news-link:hover .topics-news-title {
    text-decoration-color: currentColor;
  }

  .wp-pagenavi a:not([aria-current="page"]):hover {
    color: var(--text-link-color);
    background-color: transparent;
  }

  .side-accordion-trigger:hover {
    opacity: 0.7;
  }

  .topics-side-list a:hover {
    color: var(--text-link-color);
  }

  .topics-detail-body a:hover {
    text-decoration: none;
  }
}