@charset "UTF-8";

.news {
  overflow: hidden;
}

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

  @media (width <= 1024px) {
    padding: 2% 0 20%;
  }
  @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;

    @media (width <= 767px) {
      margin: 80px auto 0;
      width: 100%;
    }
  
    .pager_list {
      display: inline-flex;
      list-style: none;
      padding: 0;
      margin: 0;
      gap: 1.2em;
      flex-wrap: wrap;

      @media (width <= 1024px) {
        justify-content: center;
        gap: 1em;
      }
      @media (width <= 767px) {
        gap: 0.7em;
      }
    }
  
    .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;
        transition: background 0.2s;

        @media (width <= 1024px) {
          width: 50px;
          height: 67px;
          font-size: 1.6rem;
        }
        @media (width <= 767px) {
          width: 40px;
          height: 53px;
          font-size: 1.5rem;
        }
  
        &:hover {
          background-color: #f0f0f0;
        }
  
        &.arrow {
          color: #FFF;
          background-color: #0F5CA8;
        }
      }
  
      &.current .pager_link {
        background-color: transparent;
        color: #222222;
        font-weight: bold;
        border: none;
        pointer-events: none;
        cursor: default;
      }
  
      &.dots .pager_link {
        pointer-events: none;
        cursor: default;
        background: transparent;
        border: none;
        color: #222222;
        font-weight: bold;
        font-size: 2rem;
        align-items: end;

        @media (width <= 1024px) {
          font-size: 1.6rem;
        }
        @media (width <= 767px) {
          font-size: 1.5rem;
        }
      }
    }
  
    .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);

      @media (width <= 1024px) {
        width: 10px;
        height: 10px;
        left: 20px;
      }
      @media (width <= 767px) {
        width: 8px;
        height: 8px;
        left: 16px;
      }
    }
  
    .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 <= 1024px) {
        width: 10px;
        height: 10px;
        right: 20px;
      }
      @media (width <= 767px) {
        width: 8px;
        height: 8px;
        right: 16px;
      }
    }
  }
}  


/*--------------------------------------------
  NEWS 詳細ページ
---------------------------------------------*/
.news_detail {
  padding: 0 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;
    line-height: 1.8;
  }

  .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;
      line-height: 1.8;
    }
    h3 {
      font-size: 2rem;
      font-weight: bold;
      color: #0F5CA8;
      margin: 60px 0 24px;
      line-height: 1.8;
    }
    h4 {
      font-size: 1.8rem;
      font-weight: bold;
      margin: 40px 0 20px;
      line-height: 1.8;
    }
    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);
    }
  }
}


.wp-block-image.alignright {
  display: block !important;
}