@charset "UTF-8";

/** お知らせ一覧 **/
.news_contents {
  max-width: 900px;
  margin-inline: auto;
  .nodate {
    font-size: 20px;
    text-align: center;
  }

  .news-list {
    display: flex;
    flex-direction: column;
    row-gap: 37px;
    margin-bottom: 30px;
  }

  .news-list_item {
    border-bottom: 2px dotted #e1dcd7;
    padding-bottom: 20px;
    display: flex;
    column-gap: 54px;

    @media screen and (max-width: 600px) {
      flex-direction: column;
      padding-bottom: 15px;
    }

    time,
    a {
      display: block;
      font-size: 15px;
      letter-spacing: 0.1em;
      color: var(--color-text);
      &:hover {
        color: var(--color-secondary);
        opacity: 1;
      }
    }
    time {
      font-family: var(--font-family-eg);
      width: 11%;

      @media screen and (max-width: 600px) {
        width: 100%;
      }
    }
    a {
      flex: 1;
    }
  }

  .pagination {
    border-bottom: none;
    margin-bottom: 0;
  }
}

/** お知らせ詳細ページ **/
.news.page-contents {
  max-width: 950px;
}
.news-detail {
  .thumbnail {
    max-width: 650px;
    margin-inline: auto;
    margin-bottom: 30px;
    img {
      max-width: 100%;
    }
  }

  .pager {
    border-top: 1px solid var(--color-text-sub);
    padding: 10px 20px 0;
    text-align: center;
    margin-top: 60px;
  }

  .pager_list {
    display: inline-block;
    margin: 0;
    > a {
      color: #888;
      transition: 0.5s;
    }
  }
}

.news-detail_heading {
  margin-bottom: 40px;

  .title {
    font-weight: bold;
    font-size: 3rem;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
    color: var(--color-primary);
  }
  time {
    font-weight: bold;
    color: var(--color-primary);
    font-size: 18px;
  }
}

.news-detail_body {
  margin-bottom: 60px;
  word-break: break-all;
  > p {
    margin-bottom: 30px;
    line-height: 1.8;
    font-weight: normal;
  }
  h2 {
    color: var(--color-text);
    font-size: 26px;
    margin: 30px 0 20px;
    text-align: left;
    line-height: 1.5;
  }

  h3 {
    background: #f0b0b0;
    border-radius: 6px;
    font-size: 22px;
    font-weight: normal;
    margin: 30px 0 20px;
    padding: 0.3em 0.5em;
    line-height: 1.5;
  }

  h4 {
    border-bottom: var(--color-primary) 4px double;
    color: var(--color-primary);
    font-size: 20px;
    font-weight: normal;
    margin: 30px 0 20px;
    padding: 0.35em 0.5em;
    line-height: 1.5;
  }

  h5 {
    border-bottom: var(--color-primary) 3px double;
    color: var(--color-primary);
    font-size: 18px;
    font-weight: normal;
    padding: 0 0 0.5em 0;
    position: relative;
    margin: 20px 0;
    line-height: 1.5;

    &::before {
      content: "";
      display: inline-block;
      position: relative;
      top: -0.075em;
      margin-right: 0.5em;
      border: transparent 4px solid;
      border-left: var(--color-primary) 4px solid;
    }
  }

  ul {
    margin-bottom: 30px;
    line-height: 2;
    font-weight: normal;

    li {
      list-style-type: disc;
      margin-left: 2em;
    }
  }

  ol {
    margin-bottom: 30px;
    line-height: 2;
    font-weight: normal;
    list-style-type: decimal;

    li {
      margin-left: 2em;
    }
  }
}
