/*
Theme Name: Oyama
Theme URL: テーマのサイトのURI
Description: おやま質店ブログのテーマ
Author: Ryoh Kurokawa
Version: 1.00
Tags: テーマの特徴を表すタグ（カンマ区切り/オプション）
License: テーマのライセンス
License URI: テーマのライセンスのURI
*/


/* ==================================================
   記事一覧
================================================== */

.post_list {
  box-sizing: border-box;
  margin: 0 0 32px;
}

.post_list_link {
  display: flex;
  box-sizing: border-box;
  gap: 20px;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
  border: 1px solid #ddd;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.post_list_link:hover {
  border-color: #0099cc;
}


/* サムネイル */
.post_list_thumb {
  display: block;
  flex: 0 0 240px;
  height: 168px;
  overflow: hidden;
  background: #fff;
}

.post_list_thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post_list_link:hover .post_list_thumb img {
  transform: scale(1.08);
}


/* 記事情報 */
.post_list_content {
  flex: 1;
  min-width: 0;
  padding: 12px 8px 8px 0;
}

.post_list_title {
  margin: 0 0 10px;
  padding: 0;
  color: #00a7df;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
}


/* 日付・カテゴリ */
.post_list_meta {
  display: flex;
  margin: 0 0 16px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: #777;
  font-size: 12px;
  line-height: 1.5;
}

.post_list_date {
  display: inline-block;
  margin: 0;
  white-space: nowrap;
}

.post_list_category {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 4px;
}

.post_list_category_label {
  display: inline-block;
  margin: 0 5px 0 0;
  padding: 2px 8px;
  color: #555;
  font-size: 11px;
  line-height: 1.6;
  background: #eee;
}

.post_list_category_name {
  font-size: 12px;
  line-height: 1.6;
}


/* 抜粋 */
.post_list_text {
  font-size: 14px;
  line-height: 1.6;
}


/* ページネーション */
.pagination {
  margin-top: 50px;
}

.pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination .page-numbers {
  display: inline-flex;
  box-sizing: border-box;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 13px;
  text-decoration: none;
  background: #fff;
  border: 1px solid #ddd;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.pagination a.page-numbers:hover {
  background: #f3f3f3;
  border-color: #999;
}

.pagination .page-numbers.current {
  color: #fff;
  font-weight: 700;
  background: #333;
  border-color: #333;
}


/* ==================================================
   記事一覧・スマホ
================================================== */

@media only screen and (max-width: 640px) {

  .post_list {
    margin: 0 0 20px;
  }

  .post_list_link {
    display: block;
    padding: 10px;
  }

  .post_list_thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .post_list_content {
    padding: 14px 4px 8px;
  }

  .post_list_title {
    margin: 0 0 6px;
    font-size: 20px;
  }

  .post_list_meta {
    margin-bottom: 14px;
    gap: 6px 12px;
    font-size: 14px;
  }

  .post_list_category_label {
    font-size: 11px;
  }

  .post_list_category_name {
    font-size: 13px;
  }

  .post_list_text {
    font-size: 14px;
    line-height: 1.6;
  }

}


/* ==================================================
   記事単体
================================================== */

.post_single {
  box-sizing: border-box;
  width: 100%;
}


/* 記事ヘッダー */
.post_single_header {
  position: relative;
  margin: 0 0 40px;
  padding: 0 0 26px;
  border-bottom: 1px solid #ddd;
}

.post_single_header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 70px;
  height: 2px;
  background: #0099cc;
}

h2#pagetitle.post_single_title {
  margin: 0 0 18px;
  padding: 0;
  font-size: 2.4em;
  font-weight: 400;
  line-height: 1.5;
}


/* 日付・カテゴリ・タグ */
.post_single_meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: #777;
  font-size: 13px;
  line-height: 1.8;
}

.post_single_date {
  white-space: nowrap;
}

.post_single_category,
.post_single_tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 4px;
}

.post_single_meta_label {
  margin: 0 5px 0 0;
  padding: 2px 8px;
  color: #555;
  font-size: 11px;
  line-height: 1.6;
  background: #eee;
}

.post_single_category a,
.post_single_tags a {
  color: #0099cc;
  text-decoration: none;
}

.post_single_category a:hover,
.post_single_tags a:hover {
  color: #333;
  text-decoration: underline;
}


/* アイキャッチ */
.post_single_eyecatch {
  margin: 0 0 65px;
  text-align: center;
}

.post_single_eyecatch img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}


/* 本文 */
.post_single_body {
  font-size: 15px;
  line-height: 2;
}

.post_single_body::after {
  content: "";
  display: block;
  clear: both;
}

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

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

.post_single_body p {
  margin: 0 0 1.8em;
}

.post_single_body img {
  max-width: 100%;
  height: auto;
}

.post_single_body h2 {
  margin: 45px 0 20px;
  padding: 10px 15px;
  font-size: 1.6em;
  font-weight: 400;
  line-height: 1.6;
  background: #f5f5f5;
  border-left: 4px solid #0099cc;
}

.post_single_body h3 {
  margin: 38px 0 18px;
  padding: 0 0 10px;
  font-size: 1.35em;
  font-weight: 400;
  line-height: 1.6;
  background: none;
  border: 0;
  border-bottom: 1px solid #ccc;
  box-shadow: none;
}

.post_single_body ul,
.post_single_body ol {
  box-sizing: border-box;
  margin: 0 0 1.8em;
  padding-left: 1.8em;
}


/* 前後の記事 */
.post_single_nav {
  display: flex;
  margin: 65px 0 0;
  padding: 28px 0 0;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #ddd;
}

.post_single_nav_link {
  display: flex;
  box-sizing: border-box;
  width: calc(50% - 8px);
  min-height: 82px;
  padding: 14px 18px;
  flex-direction: column;
  color: #333;
  text-decoration: none;
  background: #fff;
  border: 1px solid #ccc;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.post_single_nav_link:hover {
  color: #0099cc;
  background: #f3fbfe;
  border-color: #0099cc;
}

.post_single_nav_prev {
  text-align: left;
}

.post_single_nav_next {
  margin-left: auto;
  text-align: right;
}

.post_single_nav_label {
  display: block;
  margin: 0 0 5px;
  color: #0099cc;
  font-size: 11px;
  font-weight: 400;
}

.post_single_nav_link strong {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}


/* 一覧へ戻る */
.post_single_back {
  margin: 40px 0 0;
  text-align: center;
}

.post_single_back a {
  display: inline-block;
  box-sizing: border-box;
  min-width: 220px;
  padding: 12px 30px;
  color: #fff;
  text-decoration: none;
  background: #0099cc;
  border: 1px solid #0099cc;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.post_single_back a:hover {
  color: #0099cc;
  background: #fff;
}


/* ==================================================
   記事単体・スマホ
================================================== */

@media only screen and (max-width: 640px) {

  .post_single_header {
    margin-bottom: 30px;
    padding-bottom: 20px;
  }

  h2#pagetitle.post_single_title {
    margin: 0 0 15px;
    padding: 0;
    font-size: 1.7em;
    line-height: 1.5;
    border: 0;
  }

  . .post_single_meta {
    display: block;
    font-size: 13px;
  }

  .post_single_date {
    display: block;
    margin: 0 0 8px;
  }

  .post_single_category,
  .post_single_tags {
    margin: 5px 0 0;
  }

  .post_single_eyecatch {
    margin-bottom: 45px;
  }

  .post_single_body {
    font-size: 14px;
    line-height: 1.9;
  }

  .post_single_body h2 {
    margin-top: 36px;
    font-size: 1.4em;
  }

  .post_single_body h3 {
    margin-top: 30px;
    font-size: 1.25em;
  }

  .post_single_nav {
    display: block;
    margin-top: 50px;
    padding-top: 22px;
  }

  .post_single_nav_link {
    width: 100%;
    min-height: 0;
    margin: 0 0 12px;
    padding: 13px 15px;
  }

  .post_single_nav_next {
    margin-left: 0;
  }

  .post_single_back {
    margin-top: 30px;
  }

  .post_single_back a {
    width: 100%;
  }

}