@layer base {
  .page-news .posts {
    width: 100%;
    margin-bottom: 30px;
  }
  .page-news .post-nothing {
    text-align: center;
    font-size: var(--text-sm);
    padding-top: 30px;
  }
  @media (min-width: 768px) {
    .page-news .post-nothing {
      font-size: var(--text-md);
    }
  }
  .post-news {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
    padding-block: var(--p-md);
    border-top: 1px solid var(--border-color);
  }
  .post-news .title {
    order: 2;
    font-size: var(--text-lg);
    color: var(--text-point-color);
    line-height: var(--line-height-md);
  }
  .post-news .new::after {
    content: "NEW";
    font-size: var(--text-xs);
    color: var(--text-contrast-color);
    line-height: var(--line-height-md);
    background-color: var(--new-color);
    padding-inline: 10px;
    margin-left: 4px;
    border-radius: 8px;
    vertical-align: text-top;
    display: inline-block;
    margin-top: calc(
      (
          (
              (var(--text-lg) * var(--line-height-md)) -
                (var(--text-xs) * var(--line-height-md))
            ) / 2
        ) + 1px
    );
  }
  .post-news .content {
    order: 4;
    word-break: break-all;
    color: var(--text-color);
    font-size: var(--text-color);
    line-height: var(--line-height-md);
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
  }
  .post-news .content a {
    color: var(--link-color);
  }
  .post-news .content a:hover {
    color: var(--sub-color-03);
    text-decoration: none;
  }
  .post-news .content li {
    list-style-position: inside;
  }
  .post-news .content ul {
    list-style: initial;
  }
  .post-news .content ol {
    list-style: decimal;
  }
  .post-news .content figcaption {
    text-align: center;
  }
  .post-news .time {
    order: 1;
    color: var(--text-sub-color);
  }
  .post-news .wp-post-image {
    order: 3;
    height: auto;
  }
  @media (min-width: 768px) {
    .post-news {
      border-top: none;
      display: grid;
      grid-template-columns: 1fr 240px;
      grid-template-rows: auto auto 1fr;
      padding-top: var(--p-lg);
      padding-bottom: var(--p-lg);
      border-bottom: 1px solid var(--border-color);
    }
    .post-news:first-child {
      padding-top: 0;
    }
    .post-news:last-child {
      border-bottom: none;
    }
    .post-news .title {
      min-height: 30px;
      font-size: var(--text-xl);
      grid-column: 1;
    }
    .post-news .new::after {
      margin-top: calc(
        (
            (
                (var(--text-xl) * var(--line-height-md)) -
                  (var(--text-xs) * var(--line-height-md))
              ) / 2
          ) + 1px
      );
    }
    .post-news .content {
      grid-column: 1;
    }
    .post-news .time {
      min-height: 20px;
      grid-column: 1;
    }
    .post-news .wp-post-image {
      grid-column: 2;
      grid-row: 1 / span 3;
    }
    .no-image {
      grid-template-columns: 1fr;
    }
  }
}
