@charset "utf-8";

/*=========================
  blog
=========================*/
.blog-sec1 {
  padding: 100px 0;
  @media (max-width: 960px) {
    padding: 50px 0;
  }
  .blog-sec1__illust {
    margin-inline: auto;
    margin-bottom: 20px;
    @media (max-width: 960px) {
      width: 60px;
      margin-bottom: 8px;
    }
  }
  .blog-sec1__text {
    text-align: center;
    font-size: 25px;
    font-weight: 700;
    font-family: 'dnp-shuei-mgothic-std', sans-serif;
    @media (max-width: 960px) {
      font-size: 20px;
    }
  }
  .blog-sec1__border {
    max-width: 932px;
    margin-inline: auto;
    margin-top: 25px;
    border-bottom: 2px dashed #c4b578;
  }
}

.blog-sec2 {
  padding: 0 0 100px;
  @media (max-width: 960px) {
    padding: 0 0 50px;
  }
  .blog-sec2__title {
    text-align: center;
    font-size: 30px;
    font-weight: 500;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    margin-bottom: 86px;
    @media (max-width: 960px) {
      margin-bottom: 43px;
    }
  }
  .posts-grid {
    display: flex;
    flex-wrap: wrap;
    column-gap: 30px;
    row-gap: 40px;
    margin-bottom: 80px;
    @media (max-width: 960px) {
      flex-direction: column;
      row-gap: 14px;
      margin-bottom: 50px;
    }
  }
  .post-item {
    width: calc((100% - 60px) / 3);
    padding: 16px 16px 30px;
    border-radius: 5px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    @media (max-width: 960px) {
      width: 100%;
    }
    .thumbnail {
      background-color: #e3e3e3;
      border-radius: 5px;
      height: 248px;
      margin-bottom: 20px;
      & img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
    .date {
      font-family: 'dnp-shuei-mgothic-std', sans-serif;
      font-weight: 700;
      font-size: 18px;
      line-height: 1;
      margin-bottom: 10px;
      @media (max-width: 960px) {
        font-size: 15px;
      }
    }
    .title {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      @media (max-width: 960px) {
        font-size: 15px;
      }
    }
  }
  .pagination {
    font-family: 'dnp-shuei-mgothic-std', sans-serif;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    .page-numbers {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 30px;
      color: #9e8b79;
    }
    .page-numbers.current {
      width: 40px;
      aspect-ratio: 1/1;
      border-radius: 100vmax;
      border: 1px solid #9e8b79;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .prev {
      margin-right: 10px;
    }
    .next {
      margin-left: 10px;
    }
  }
}

/*=========================
  single
=========================*/
.post-single {
  padding: 100px 0;
  @media (max-width: 960px) {
    padding: 50px 0;
  }
  .post-single__inner {
    width: min(100%, 800px);
    margin-inline: auto;
  }
  .post-single__title-wrapper {
    margin-inline: auto;
    padding-bottom: 14px;
    border-bottom: 3px dashed #2c630c;
    margin-bottom: 40px;
  }
  .post-single__title {
    font-family: 'dnp-shuei-mgothic-std', sans-serif;
    font-weight: 700;
    font-size: 40px;
    text-align: center;
    @media (max-width: 960px) {
      font-size: 20px;
    }
  }
  .post-single__body {
    font-size: 18px;
    @media (max-width: 960px) {
      font-size: 16px;
    }
  }
}

/* 記事内汎用 */
.post-single {
  .post-single__body {
    line-height: 2;
  }

  .post-single__body > *:first-child {
    margin-top: 0;
  }

  .post-single__body > *:last-child {
    margin-bottom: 0;
  }

  .post-single__body p {
    margin: 0 0 1.5em;
  }

  .post-single__body h2 {
    margin: 2.5em 0 1em;
    font-size: 1.6em;
    line-height: 1.4;
  }

  .post-single__body h3 {
    margin: 2em 0 0.8em;
    font-size: 1.4em;
    line-height: 1.5;
  }

  .post-single__body h4 {
    margin: 1.8em 0 0.8em;
    font-size: 1.2em;
    line-height: 1.5;
  }

  .post-single__body ul,
  .post-single__body ol {
    margin: 0 0 1.5em;
    padding-left: 1.5em;
  }

  .post-single__body li {
    margin-bottom: 0.5em;
  }

  .post-single__body figure {
    margin: 0 0 2em;
  }

  .post-single__body img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .post-single__body a {
    text-decoration: underline;
    text-underline-offset: 0.15em;
  }

  .post-single__body blockquote {
    margin: 0 0 2em;
    padding: 1.5em;
    background: #f7f7f7;
    border-left: 4px solid #ccc;
  }

  .post-single__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 2em;
  }

  .post-single__body th,
  .post-single__body td {
    border: 1px solid #ddd;
    padding: 0.75em;
  }
}
