@charset "UTF-8";

/*--------------------------------------------
  NEWS 一覧ページ
---------------------------------------------*/
.news_list_wrap {
  padding: 0 0 216px;

  @media (width <= 767px) {
    padding: 2% 0 30%;
  }

  .news_list.clm3_grid {
    column-gap: 2%;

    .news_item { 

      @media (width <= 767px) {
        row-gap: 0;
        margin-top: 7%;
      }

      &:nth-child(n+4) {
        margin-top: 37px;
      }
      @media (width <= 767px) {
        &:nth-child(n+4) {
          margin-top: 7%;
        }
      }

      .thumb {
        aspect-ratio: 370 / 227;
        width: 100%;
        max-width: 370px;
        overflow: hidden;
        margin: 0 auto;

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          object-position: center;
          display: block;
        }
      }
      p {
        text-align: center;
      }
      .date {
        font-weight: bold;
        font-size: 2rem;
        line-height: 1;
        padding: 20px 0 11px;
      }
      .title {
        font-size: 1.6rem;
        line-height: 1.8;
      }
    }
  }

  .pager {
    text-align: center;
    margin-top: 111px;
  
    .pager_list {
      display: inline-flex;
      list-style: none;
      padding: 0;
      margin: 0;
      gap: 1.2em;
      flex-wrap: wrap;
    }
  
    .pager_item {
      position: relative;
  
      .pager_link {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 60px;
        height: 80px;
        font-size: 2rem;
        font-weight: bold;
        color: #0F5CA8;
        text-decoration: none;
        border: 2px solid #0F5CA8;
        background-color: #F2F2F2;
        position: relative;
  
        &:hover {
          background-color: #f0f0f0;
        }
  
        &.arrow {
          color: #FFF;
          background-color: #0F5CA8;
        }
      }
      &.dots .pager_link {
        pointer-events: none;
        cursor: default;
        background: transparent;
        border: none;
        color: #222222;
        font-weight: bold;
        font-size: 2rem;
        align-items: end;
      }
  
      .active {
        background-color: #FFF;
        color: #222222;
        font-weight: bold;
        border: none;
        pointer-events: none;
        cursor: default;
      }
    }
  
    .prev {
      .pager_link::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 25px;
        width: 15px;
        height: 15px;
        border-top: 2px solid currentColor;
        border-left: 2px solid currentColor;
        transform: translateY(-50%) rotate(-45deg);
      }
    }
  
    .next {
      .pager_link::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 25px;
        width: 15px;
        height: 15px;
        border-top: 2px solid currentColor;
        border-right: 2px solid currentColor;
        transform: translateY(-50%) rotate(45deg);
      }
    }
  
    @media (width <= 767px) {
      .pager_list {
        gap: 0.3em;
      }
      .pager_item .pager_link {
        padding: 0.4em 1.4em;
        font-size: 0.9em;
      }
    }
  }
}


/*--------------------------------------------
  NEWS 詳細ページ
---------------------------------------------*/
.news_detail {
  padding: 73px 0 166px;

  .inner {
    max-width: 960px;
    margin: 0 auto;
  }

  .news_title {
    font-size: 2.6rem;
    font-weight: bold;
    padding-bottom: 24px;
    margin-bottom: 15px;
    border-bottom: 3px solid #0F5CA8;
  }

  .date {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 37px;
  }

  .news_content {

    p {
      margin-bottom: 20px;
      line-height: 1.8;
    }
    a {
      text-decoration: underline;
      font-weight: bold;
      margin: 30px 0 40px;
      display: inline-block;
    }
    h3 {
      font-size: 2rem;
      font-weight: bold;
      color: #0F5CA8;
      margin: 60px 0 24px;
    }
    h4 {
      font-size: 1.8rem;
      font-weight: bold;
      margin: 40px 0 20px;
    }
    img {
      max-width: 100%;
      height: auto;
      margin: 40px 0;
    }
    ul, ol {
      margin: 20px 0;
      padding-left: 20px;
    }
    blockquote {
      margin: 30px 0;
      padding: 20px;
      border-left: 5px solid #ccc;
      background: #f9f9f9;
    }
  }

  .hr_btm {
    border: none;
    border-top: 3px solid #0F5CA8;
    margin: 72px 0 28px;
  }

  .prev_btn {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: underline;
    position: relative;
    padding-left: 30px;
    display: inline-block;

    &::before {
      position: absolute;
      top: 2px;
      left: 0;
      margin: 0 auto;
      display: block;
      content: "";
      width: 15px;
      height: 15px;
      border-top: 2px solid #0F5CA8;
      border-left: 2px solid #0F5CA8;
      -webkit-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
      transform: rotate(-45deg);
    }
  }
}