/* News archive / single (moved from inline <style> blocks). */

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  border-top: 1px solid #ddd;
}

.news-list li:last-child {
  border-bottom: 1px solid #ddd;
}

.news-list li a {
  display: flex;
  align-items: baseline;
  padding: 1.5em 0;
  text-decoration: none;
  transition: background-color 0.2s ease;
  color: #333;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN', 'Noto Sans JP', sans-serif;
}

.news-list li a:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.news-list .date {
  flex-shrink: 0;
  width: 120px;
  font-size: 12px;
  color: #333;
}

.news-list .title {
  flex: 1;
  font-size: 16px;
}

.news-list .arrow {
  flex-shrink: 0;
  margin-left: 1em;
  color: #0066cc;
}

/* Pagination styles */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  margin-top: 2em;
  padding-top: 2em;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN', 'Noto Sans JP', sans-serif;
}

.news-pagination a,
.news-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75em;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.news-pagination a:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: #999;
}

.news-pagination .current {
  background-color: #333;
  border-color: #333;
  color: #fff;
}

.news-pagination .dots {
  border: none;
  min-width: auto;
}

.custom-blog-title,
.custom-blog-content,
.blog-meta-info {
  color: #333;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN', 'Noto Sans JP', sans-serif;
}

/* Category label (archive list, single page). */
.news-label {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-right: .8em;
  padding: 1px 10px 2px;
  border: 1px solid #ae99ea;
  border-radius: 12px;
  color: #3908c4;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  letter-spacing: .02em;
  vertical-align: middle;
}

/* News single layout (shares the archive container; this file loads on news pages only). */
.news-single__header {
  padding-bottom: 1.5em;
  border-bottom: 1px solid #9d94c4;
}

.news-single__breadcrumb {
  margin-bottom: 30px;
  color: #6653a8;
  font-size: 13px;
}

.news-single__breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-single__breadcrumb li:not(:last-child)::after {
  margin-left: 8px;
  content: ">";
}

.news-single__breadcrumb li:last-child {
  max-width: 38em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p-article__content .news-single__breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.news-single__category {
  margin: 0 0 12px;
}

.news-single__title {
  margin: 0;
  color: #333;
  font-family: kinuta-maruminshinano-stdn, "Noto Serif JP", serif;
  font-size: clamp(28px, 2.2vw, 36px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.news-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 20px 0 0;
  color: #6653a8;
  font-size: 13px;
  letter-spacing: .04em;
}

.news-single__meta > div {
  display: flex;
  gap: 8px;
}

.news-single__meta dt {
  font-weight: 600;
}

.news-single__meta dd {
  margin: 0;
}

.news-single__thumbnail {
  margin-top: 1.5em;
}

.news-single__thumbnail img {
  display: block;
  max-width: 100%;
  height: auto;
}

.news-single__content {
  margin-top: 2.5em;
  color: #333;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN', 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.news-single__content > * + * {
  margin-top: 1.2em;
}

.news-single__content h2 {
  margin-top: 2.5em;
  margin-bottom: .8em;
}

/* Lighter brand purple for the heading rule, matching the column pages. */
.news-single__content h2.wp-block-heading::after {
  background: #ae99ea;
}

.news-single__content h3 {
  margin-top: 2em;
  margin-bottom: .6em;
}

.news-single__content ul,
.news-single__content ol {
  padding-left: 1.5em;
}

.news-single__content li + li {
  margin-top: .4em;
}

.news-single__content img {
  max-width: 100%;
  height: auto;
}

/* Previous / next news. */
.news-adjacent {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 56px;
}

.p-article__content .news-adjacent__link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 96px;
  padding: 18px 22px;
  border: 1px solid #ae99ea;
  background: rgba(255, 255, 255, .55);
  color: #333;
  text-decoration: none;
  transition: border-color .3s ease, background-color .3s ease;
}

.news-adjacent__link--next {
  text-align: right;
}

.news-adjacent__label {
  color: #6653a8;
  font-size: 12px;
  letter-spacing: .06em;
}

.news-adjacent__title {
  font-size: 14px;
  line-height: 1.7;
}

.news-single__back {
  margin-top: 3em;
  text-align: right;
}

.p-article__content .news-single__back a {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: #3908c4;
  font-family: "Noto Serif JP", serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
}

@media (hover: hover) {
  .p-article__content .news-adjacent__link:hover {
    border-color: #3908c4;
    background: rgba(255, 255, 255, .85);
  }

  .p-article__content .news-single__breadcrumb a:hover {
    text-decoration: underline;
  }
}

@media screen and (max-width: 1024px) {
  .news-list .title .news-label {
    display: inline-flex;
    margin-bottom: .3em;
  }

  .news-single__breadcrumb {
    margin-bottom: 22px;
    font-size: 12px;
  }

  .news-single__breadcrumb li:last-child {
    max-width: 100%;
  }

  .news-single__title {
    font-size: min(6vw, 26px);
  }

  .news-single__content {
    margin-top: 2em;
    font-size: 15px;
  }

  .news-adjacent {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 44px;
  }

  .p-article__content .news-adjacent__link {
    min-height: 0;
    padding: 16px 18px;
  }

  .news-adjacent__link--next {
    text-align: left;
  }

  .news-single__back {
    margin-top: 2.5em;
  }
}
